mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Convert old school PLIST_SUB's to PLIST_FILES tuning and offload pkg-pist
- Assign MAN1 variable dynamically, based on selection of utilities - Register `test' target quite natural dependency on `build' one, and hook it to `regression-test' so tests will be run when building on tinderbox
This commit is contained in:
parent
2eb488c1c4
commit
95f8c9fd5a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285020
2 changed files with 6 additions and 14 deletions
|
@ -27,28 +27,23 @@ OPTIONS= TIFFICC "Build color profile applier for TIFF" off \
|
|||
JPEGICC "Build color profile applier for JPEG" off
|
||||
|
||||
UTILS= transicc psicc linkicc
|
||||
MAN1= transicc.1 psicc.1 linkicc.1
|
||||
MAN1= ${UTILS:S/$/.1/}
|
||||
PLIST_FILES= ${UTILS:S/^/bin\//}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_TIFFICC)
|
||||
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
|
||||
PLIST_SUB+= TIFFICC=""
|
||||
MAN1+= tificc.1
|
||||
UTILS+= tificc
|
||||
.else
|
||||
CONFIGURE_ARGS= --without-tiff
|
||||
PLIST_SUB+= TIFFICC="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_JPEGICC)
|
||||
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
|
||||
PLIST_SUB+= JPEGICC=""
|
||||
MAN1+= jpgicc.1
|
||||
UTILS+= jpgicc
|
||||
.else
|
||||
CONFIGURE_ARGS= --without-jpeg
|
||||
PLIST_SUB+= JPEGICC="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
@ -80,7 +75,9 @@ post-install:
|
|||
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
test:
|
||||
cd ${WRKSRC}/testbed && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
||||
test: build
|
||||
@cd ${WRKSRC}/testbed && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
||||
|
||||
regression-test: test
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
%%JPEGICC%%bin/jpgicc
|
||||
bin/linkicc
|
||||
bin/psicc
|
||||
%%TIFFICC%%bin/tificc
|
||||
bin/transicc
|
||||
include/lcms2.h
|
||||
include/lcms2_plugin.h
|
||||
lib/liblcms2.so
|
||||
|
|
Loading…
Add table
Reference in a new issue