. 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.
This commit is contained in:
Boris Samorodov 2013-11-21 13:50:36 +00:00
parent 4a55da64d5
commit 0e2dd4165b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334492
2 changed files with 20 additions and 13 deletions

View file

@ -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 <bsd.port.mk>

View file

@ -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