diff options
author | danfe <danfe@FreeBSD.org> | 2011-11-04 11:41:21 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2011-11-04 11:41:21 +0800 |
commit | 004e5f625dbbe71d53964e5f50bbcff496832f4d (patch) | |
tree | 3115740525db0df5150ab76f1831ceeb9f02606d /graphics/lcms2 | |
parent | 0bbbfdb70f606ebe08566686b537227d67cfb7bf (diff) | |
download | freebsd-ports-gnome-004e5f625dbbe71d53964e5f50bbcff496832f4d.tar.gz freebsd-ports-gnome-004e5f625dbbe71d53964e5f50bbcff496832f4d.tar.zst freebsd-ports-gnome-004e5f625dbbe71d53964e5f50bbcff496832f4d.zip |
- Canonicalize Makefile header
- Rephrase COMMENT line, define LICENSE (MIT)
- Prefer lowercase (foo) to uppercase (FOO) variables in ``.for .. .endfor''
loops, as it indicates better that variable supposed to be "local"
- Cleanup Makefile (drop no-op REINPLACE_CMD's, CFLAGS augmentation, etc.)
- Use more standard MANPREFIX instead of MAN1PREFIX which also does not seem
to be documented anywhere
Diffstat (limited to 'graphics/lcms2')
-rw-r--r-- | graphics/lcms2/Makefile | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/graphics/lcms2/Makefile b/graphics/lcms2/Makefile index aab50e6211f1..fa3bb70f0782 100644 --- a/graphics/lcms2/Makefile +++ b/graphics/lcms2/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: lcms2 -# Date created: 12/04/2010 -# Whom: stas +# New ports collection makefile for: Little CMS (v2) +# Date created: 12/04/2010 +# Whom: Stanislav Sedov <stas@FreeBSD.org> # # $FreeBSD$ # @@ -12,13 +12,14 @@ MASTER_SITES= SF/lcms/lcms/${PORTVERSION} \ http://www.littlecms.com/ MAINTAINER= ports@FreeBSD.org -COMMENT= Light Color Management System -- a color management library +COMMENT= Accurate, fast, and small-footprint color management engine + +LICENSE= MIT USE_GNOME= gnomehack lthack GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= -I${LOCALBASE}/include USE_LDCONFIG= yes WITH_FBSD10_FIX= yes @@ -51,33 +52,29 @@ PLIST_SUB+= JPEGICC="@comment " .endif post-patch: - @${REINPLACE_CMD} -e \ - 's|^SUBDIRS =.*$$|SUBDIRS = src include|g' ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e \ - 's|-O3||g' ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's|^SUBDIRS =.*$$|SUBDIRS = src include|' \ + ${WRKSRC}/Makefile.in -# -# Get rid of .la and static library files -# post-configure: +# Get rid of .la and static library files @${REINPLACE_CMD} -E -e \ - '/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool + '/Install the pseudo-library/,/staticlibs=/s,^,#,' \ + ${WRKSRC}/libtool post-build: -.for DIR in ${UTILS} - @(cd ${WRKSRC}/utils/${DIR} && ${SETENV} ${MAKE_ENV} ${MAKE} \ - ${MAKE_FLAGS} Makefile all) +.for dir in ${UTILS} + @cd ${WRKSRC}/utils/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} all .endfor post-install: -.for DIR in ${UTILS} - @(cd ${WRKSRC}/utils/${DIR} && ${SETENV} ${MAKE_ENV} ${MAKE} \ - ${MAKE_FLAGS} Makefile install) +.for dir in ${UTILS} + @cd ${WRKSRC}/utils/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} install .endfor - ${INSTALL_MAN} ${WRKSRC}/utils/linkicc/linkicc.1 ${MAN1PREFIX}/man/man1/ - ${INSTALL_MAN} ${WRKSRC}/utils/psicc/psicc.1 ${MAN1PREFIX}/man/man1/ - ${INSTALL_MAN} ${WRKSRC}/utils/transicc/transicc.1 ${MAN1PREFIX}/man/man1/ - + ${INSTALL_MAN} ${WRKSRC}/utils/linkicc/linkicc.1 \ + ${WRKSRC}/utils/psicc/psicc.1 \ + ${WRKSRC}/utils/transicc/transicc.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR} |