aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-11-05 17:53:29 +0800
committerale <ale@FreeBSD.org>2005-11-05 17:53:29 +0800
commitc04f0d356b0b88dc75d8ca4e1c20b8a6e3328f93 (patch)
treec7f5f647435951b0d47b43b1e12550b18fc2a821
parent87b3cacfd5f72be59cd244d573bf31df909ca2cc (diff)
downloadfreebsd-ports-gnome-c04f0d356b0b88dc75d8ca4e1c20b8a6e3328f93.tar.gz
freebsd-ports-gnome-c04f0d356b0b88dc75d8ca4e1c20b8a6e3328f93.tar.zst
freebsd-ports-gnome-c04f0d356b0b88dc75d8ca4e1c20b8a6e3328f93.zip
Respect LOCALBASE.
Spotted by: kris
-rw-r--r--print/hpijs/Makefile7
-rw-r--r--print/hpijs/pkg-plist6
2 files changed, 8 insertions, 5 deletions
diff --git a/print/hpijs/Makefile b/print/hpijs/Makefile
index e30f6763aa6f..a306c372d168 100644
--- a/print/hpijs/Makefile
+++ b/print/hpijs/Makefile
@@ -57,12 +57,13 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${PREFIX}/bin
.else
INSTALL_TARGET= install-exec install-foomatic
-.if !defined(WITHOUT_CUPS)
-INSTALL_TARGET+= install-cups
-.endif
.endif
post-install:
+.if !defined(WITHOUT_CUPS)
+ @${LN} -s ${PREFIX}/bin/foomatic-rip ${LOCALBASE}/libexec/cups/filter/foomatic-rip
+ @${LN} -s ${PREFIX}/share/ppd ${LOCALBASE}/share/cups/model/foomatic-ppds
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/gs_hpijs.png ${DOCSDIR}
diff --git a/print/hpijs/pkg-plist b/print/hpijs/pkg-plist
index 2c7b2af02ba2..c40ed7eef61c 100644
--- a/print/hpijs/pkg-plist
+++ b/print/hpijs/pkg-plist
@@ -1,7 +1,7 @@
%%FOOMATIC%%bin/foomatic-rip
+%%CUPS%%@exec /bin/ln -s %D/bin/foomatic-rip %%LOCALBASE%%/libexec/cups/filter/foomatic-rip
+%%CUPS%%@unexec /bin/rm -f %%LOCALBASE%%/libexec/cups/filter/foomatic-rip
bin/hpijs
-%%CUPS%%libexec/cups/filter/foomatic-rip
-%%CUPS%%share/cups/model/foomatic-ppds
%%FOOMATIC%%share/ppd/HP/HP-2000C-hpijs.ppd.gz
%%FOOMATIC%%share/ppd/HP/HP-2500C-hpijs.ppd.gz
%%FOOMATIC%%share/ppd/HP/HP-2500CM-hpijs.ppd.gz
@@ -424,6 +424,8 @@ bin/hpijs
%%FOOMATIC%%share/ppd/HP/hp_color_LaserJet_9500.ppd.gz
%%FOOMATIC%%share/ppd/HP/hp_color_LaserJet_9500_MFP.ppd.gz
%%FOOMATIC%%share/ppd/HP/hp_officejet_9100_series.ppd.gz
+%%CUPS%%@exec /bin/ln -s %D/share/ppd %%LOCALBASE%%/share/cups/model/foomatic-ppds
+%%CUPS%%@unexec /bin/rm -f %%LOCALBASE%%/share/cups/model/foomatic-ppds
%%PORTDOCS%%%%DOCSDIR%%/gs_hpijs.png
%%PORTDOCS%%%%DOCSDIR%%/hpijs_readme.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%