aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-02-07 11:26:46 +0800
committerache <ache@FreeBSD.org>2007-02-07 11:26:46 +0800
commit4b40286aa61aaf768a15df4a215124f02d57555e (patch)
tree5ea4182a86230c42de5f0d082224533c89d87f67 /print
parente71863639e337129a89bf81f4b1dc5a3624de22e (diff)
downloadfreebsd-ports-gnome-4b40286aa61aaf768a15df4a215124f02d57555e.tar.gz
freebsd-ports-gnome-4b40286aa61aaf768a15df4a215124f02d57555e.tar.zst
freebsd-ports-gnome-4b40286aa61aaf768a15df4a215124f02d57555e.zip
Make libgs useful (at least for ImageMagick) by installing its API
headers.
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