diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-11-22 07:12:39 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-11-22 07:12:39 +0800 |
commit | 27fb5592aebf8964ab7dc547d26a3612830a025f (patch) | |
tree | 513a09c77e86783513054b00f54f18a1e0dfaeeb /graphics/lcms2 | |
parent | 5debb082a01915d49bca9d4ee3f6b5c8f15e9413 (diff) | |
download | freebsd-ports-gnome-27fb5592aebf8964ab7dc547d26a3612830a025f.tar.gz freebsd-ports-gnome-27fb5592aebf8964ab7dc547d26a3612830a025f.tar.zst freebsd-ports-gnome-27fb5592aebf8964ab7dc547d26a3612830a025f.zip |
- Convert to new LIB_DEPENDS format
- Convert to new options helper
- Support STAGEDIR
Diffstat (limited to 'graphics/lcms2')
-rw-r--r-- | graphics/lcms2/Makefile | 30 | ||||
-rw-r--r-- | graphics/lcms2/pkg-plist | 5 |
2 files changed, 16 insertions, 19 deletions
diff --git a/graphics/lcms2/Makefile b/graphics/lcms2/Makefile index c9703b75bc11..fd13c7b92a45 100644 --- a/graphics/lcms2/Makefile +++ b/graphics/lcms2/Makefile @@ -13,6 +13,7 @@ COMMENT= Accurate, fast, and small-footprint color management engine LICENSE= MIT OPTIONS_DEFINE= DOCS JPEGICC TIFFICC +OPTIONS_SUB= yes JPEGICC_DESC= Build color profile applier for JPEG TIFFICC_DESC= Build color profile applier for TIFF @@ -22,34 +23,25 @@ LDFLAGS+= -L${LOCALBASE}/lib USE_GNOME= gnomehack lthack USE_LDCONFIG= yes -MAN1= linkicc.1 psicc.1 transicc.1 PLIST_SUB= PORTVERSION=${PORTVERSION} UTILS= linkicc psicc transicc -NO_STAGE= yes +JPEGICC_CONFIGURE_OFF= --without-jpeg +JPEGICC_CONFIGURE_ON= --with-jpeg=${LOCALBASE} +JPEGICC_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg +TIFFICC_CONFIGURE_OFF= --without-tiff +TIFFICC_CONFIGURE_ON= --with-tiff=${LOCALBASE} +TIFFICC_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff + .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MJPEGICC} -LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg -CONFIGURE_ARGS+=--with-jpeg=${LOCALBASE} -MAN1+= jpgicc.1 -PLIST_SUB+= JPEGICC="" UTILS+= jpgicc -.else -CONFIGURE_ARGS+=--without-jpeg -PLIST_SUB+= JPEGICC="@comment " .endif .if ${PORT_OPTIONS:MTIFFICC} -LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff -CONFIGURE_ARGS= --with-tiff=${LOCALBASE} -MAN1+= tificc.1 -PLIST_SUB+= TIFFICC="" UTILS+= tificc -.else -CONFIGURE_ARGS+=--without-tiff -PLIST_SUB+= TIFFICC="@comment " .endif post-patch: @@ -65,10 +57,10 @@ post-configure: @${REINPLACE_CMD} -E -e '/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool post-install: - cd ${WRKSRC}/utils/ && ${INSTALL_MAN} linkicc/linkicc.1 psicc/psicc.1 transicc/transicc.1 ${MANPREFIX}/man/man1/ + cd ${WRKSRC}/utils/ && ${INSTALL_MAN} linkicc/linkicc.1 psicc/psicc.1 transicc/transicc.1 ${STAGEDIR}${PREFIX}/man/man1/ .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}/ .endif regression-test test: build diff --git a/graphics/lcms2/pkg-plist b/graphics/lcms2/pkg-plist index acbaf640bf45..4927e442bf47 100644 --- a/graphics/lcms2/pkg-plist +++ b/graphics/lcms2/pkg-plist @@ -8,6 +8,11 @@ include/lcms2_plugin.h lib/liblcms2.so lib/liblcms2.so.2 libdata/pkgconfig/lcms2.pc +%%JPEGICC%%man/man1/jpgicc.1.gz +man/man1/linkicc.1.gz +man/man1/psicc.1.gz +%%TIFFICC%%man/man1/tificc.1.gz +man/man1/transicc.1.gz %%PORTDOCS%%%%DOCSDIR%%/LittleCMS%%PORTVERSION%% API.pdf %%PORTDOCS%%%%DOCSDIR%%/LittleCMS%%PORTVERSION%% Plugin API.pdf %%PORTDOCS%%%%DOCSDIR%%/LittleCMS%%PORTVERSION%% tutorial.pdf |