aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2007-02-07 03:26:46 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2007-02-07 03:26:46 +0000
commit68452bd59a3c00b8c60d186e1c600c3a030c1410 (patch)
tree67f6b3cd3e7355393624178cc24d7d0e9c3ed6ca /print
parent1d692eb797c1dd574041f25fbf5b214a3a0b3ced (diff)
downloadports-68452bd59a3c00b8c60d186e1c600c3a030c1410.tar.gz
ports-68452bd59a3c00b8c60d186e1c600c3a030c1410.zip
Make libgs useful (at least for ImageMagick) by installing its API
headers.
Notes
Notes: svn path=/head/; revision=184453
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-afpl/Makefile10
-rw-r--r--print/ghostscript-afpl/pkg-plist3
2 files changed, 13 insertions, 0 deletions
diff --git a/print/ghostscript-afpl/Makefile b/print/ghostscript-afpl/Makefile
index b47ca33750ab..937e3911bfd5 100644
--- a/print/ghostscript-afpl/Makefile
+++ b/print/ghostscript-afpl/Makefile
@@ -110,6 +110,7 @@ INSTALL_TARGET= soinstall
USE_LDCONFIG= yes
SHLIB_VER= 1
PLIST_SUB+= SHLIB="" SHLIB_VER="${SHLIB_VER}"
+INCLUDEDIR= ${PREFIX}/include/ghostscript
.else
PLIST_SUB+= SHLIB="@comment "
.endif
@@ -440,10 +441,19 @@ pre-su-install:
${ECHO_MSG} ">>> creating ghostscript destdir ..."
${MKDIR} ${DATADIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
+.if defined(WITH_SHLIB)
+ ${MKDIR} ${INCLUDEDIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INCLUDEDIR}
+.endif
post-install:
${ECHO_MSG} ">>> in post-install ..."
${LN} -s -f ${LOCALBASE}/share/fonts/CIDFont ${CIDFONTDIR}/CIDFont
+.if defined(WITH_SHLIB)
+ ${INSTALL_DATA} ${WRKSRC}/src/iapi.h \
+ ${WRKSRC}/src/ierrors.h \
+ ${INCLUDEDIR}
+.endif
${ECHO_MSG} ">>> stripping gs ..."
.if defined(WITH_SHLIB)
${STRIP_CMD} ${PREFIX}/bin/gsc ${PREFIX}/bin/gsx
diff --git a/print/ghostscript-afpl/pkg-plist b/print/ghostscript-afpl/pkg-plist
index 9ca040a2067d..ce95c5e213fe 100644
--- a/print/ghostscript-afpl/pkg-plist
+++ b/print/ghostscript-afpl/pkg-plist
@@ -33,6 +33,8 @@ bin/ps2ps
bin/pv.sh
bin/unix-lpr.sh
bin/wftopfa
+%%SHLIB%%include/ghostscript/iapi.h
+%%SHLIB%%include/ghostscript/ierrors.h
%%SHLIB%%lib/libgs.so
%%SHLIB%%lib/libgs.so.%%SHLIB_VER%%
%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
@@ -585,6 +587,7 @@ bin/wftopfa
%%DATADIR%%/%%GS_VERSION%%/lib/zeroline.ps
@exec ln -s -f %D/share/fonts/CIDFont %%CIDFONTDIR%%/CIDFont
@unexec rm -f %%CIDFONTDIR%%/CIDFont
+%%SHLIB%%@dirrm include/ghostscript
@dirrm %%DATADIR%%/%%GS_VERSION%%/lib
@dirrm %%DATADIR%%/%%GS_VERSION%%/examples
@dirrm %%DATADIR%%/%%GS_VERSION%%/doc