From 0e2dd4165b78752a1cbd79f13ef7802dd976c230 Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Thu, 21 Nov 2013 13:50:36 +0000 Subject: [PATCH] . support STAGE; . use new LIB_DEPENDS syntax; . use native iconv at FreeBSD > 9.x; . remove build dependency upon devel/xdg-utils (they install files to PREFIX) and use post-install target to install files to STAGEDIR. --- graphics/iccexamin/Makefile | 28 +++++++++++++++++----------- graphics/iccexamin/pkg-plist | 5 +++-- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/graphics/iccexamin/Makefile b/graphics/iccexamin/Makefile index b6f712636a23..abb05acc15dc 100644 --- a/graphics/iccexamin/Makefile +++ b/graphics/iccexamin/Makefile @@ -12,14 +12,13 @@ COMMENT= ICC profile viewer and colour visualisation LICENSE= GPLv2 -BUILD_DEPENDS= ${LOCALBASE}/bin/xdg-desktop-menu:${PORTSDIR}/devel/xdg-utils -LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk \ - ftgl:${PORTSDIR}/graphics/ftgl \ - lcms:${PORTSDIR}/graphics/lcms \ - png15:${PORTSDIR}/graphics/png \ - tiff:${PORTSDIR}/graphics/tiff \ - jpeg:${PORTSDIR}/graphics/jpeg \ - oyranos:${PORTSDIR}/graphics/oyranos +LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk \ + libftgl.so:${PORTSDIR}/graphics/ftgl \ + liblcms.so:${PORTSDIR}/graphics/lcms \ + libpng15.so:${PORTSDIR}/graphics/png \ + libtiff.so:${PORTSDIR}/graphics/tiff \ + libjpeg.so:${PORTSDIR}/graphics/jpeg \ + liboyranos.so:${PORTSDIR}/graphics/oyranos MAKE_JOBS_UNSAFE= yes USES= gettext iconv pkgconfig @@ -27,9 +26,16 @@ USE_BZIP2= yes HAS_CONFIGURE= yes INSTALLS_ICONS= yes USE_XORG= # -CONFIGURE_ARGS+=--mandir=${PREFIX}/man --prefix=${PREFIX} +CONFIGURE_ARGS+=--mandir=${PREFIX}/man -MAN1= iccexamin.1 +post-patch: + @${REINPLACE_CMD} 's:\\$$(iconv):${ICONV_LIB}:' \ + ${WRKSRC}/configure ${WRKSRC}/fl_i18n/makefile.in + @${REINPLACE_CMD} 's:-xdg:#-xdg:' ${WRKSRC}/makefile.in + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps + ${INSTALL_DATA} ${WRKSRC}/icc_examin.svg \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/iccexamin.png -NO_STAGE= yes .include diff --git a/graphics/iccexamin/pkg-plist b/graphics/iccexamin/pkg-plist index 6cfcd454da7f..e09a3b03ef31 100644 --- a/graphics/iccexamin/pkg-plist +++ b/graphics/iccexamin/pkg-plist @@ -2,13 +2,14 @@ bin/iccexamin share/applications/iccexamin.desktop share/fonts/FreeSans.ttf share/icons/hicolor/128x128/apps/iccexamin.png -share/pixmaps/hicolor/scalable/iccexamin.svg -share/pixmaps/iccexamin.png share/locale/cs/LC_MESSAGES/icc_examin.mo share/locale/de/LC_MESSAGES/icc_examin.mo share/locale/eo/LC_MESSAGES/icc_examin.mo share/locale/eu/LC_MESSAGES/icc_examin.mo share/locale/fr/LC_MESSAGES/icc_examin.mo +share/pixmaps/hicolor/scalable/iccexamin.svg +share/pixmaps/iccexamin.png +man/man1/iccexamin.1.gz @dirrmtry share/pixmaps/hicolor/scalable @dirrmtry share/pixmaps/hicolor @dirrmtry share/fonts