aboutsummaryrefslogtreecommitdiff
path: root/print/hpijs
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-11-05 09:53:29 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-11-05 09:53:29 +0000
commitd70aafbd2ea6ebb4cd021edc8ae842157c59de54 (patch)
tree8965be22804cb51b1c2f38fc31f533d488ea6684 /print/hpijs
parent89a727e1d0c72cd76c0463101e12e5de499234bb (diff)
downloadports-d70aafbd2ea6ebb4cd021edc8ae842157c59de54.tar.gz
ports-d70aafbd2ea6ebb4cd021edc8ae842157c59de54.zip
Respect LOCALBASE.
Spotted by: kris
Notes
Notes: svn path=/head/; revision=147358
Diffstat (limited to 'print/hpijs')
-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%%