Changeset View
Changeset View
Standalone View
Standalone View
x11-fm/pcmanfm/Makefile
# Created by: Martin Tournoij <carpetsmoker@xs4all.nl> | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pcmanfm | PORTNAME= pcmanfm | ||||
PORTVERSION= 1.2.5 | PORTVERSION= 1.3.1 | ||||
CATEGORIES= x11-fm | CATEGORIES= x11-fm | ||||
MASTER_SITES= SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ | MASTER_SITES= SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ | ||||
mat: Please use the `<flavor>_PKGNAMESUFFIX` helpers for that, do not reuse `FLAVOR` in it, and try… | |||||
MAINTAINER= portmaster@BSDforge.com | MAINTAINER= portmaster@BSDforge.com | ||||
COMMENT= PCMan File Manager | COMMENT= PCMan File Manager | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LIB_DEPENDS= libfm-gtk.so:x11/libfm \ | LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | ||||
libfontconfig.so:x11-fonts/fontconfig \ | |||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 | ||||
USES= desktop-file-utils gettext gmake libtool localbase pkgconfig \ | FLAVORS= gtk2 gtk3 | ||||
tar:xz | FLAVOR?= ${FLAVORS:[1]} | ||||
GNU_CONFIGURE= yes | |||||
USE_GNOME= glib20 gtk20 cairo pango gdkpixbuf2 intltool intlhack | gtk3_PKGNAMESUFFIX= -gtk3 | ||||
Done Inline ActionsFLAVOR is the flavor of the local port, it cannot be transitive. mat: `FLAVOR` is the flavor of the local port, it cannot be transitive.
Please use litteral `@gtk2`… | |||||
gtk2_LIB_DEPENDS= libfm-gtk.so:x11/libfm@gtk2 | |||||
gtk3_LIB_DEPENDS= libfm-gtk3.so:x11/libfm@gtk3 | |||||
gtk2_CONFLICTS_INSTALL= pcmanfm-gtk3 | |||||
gtk3_CONFLICTS_INSTALL= pcmanfm | |||||
USES= desktop-file-utils gmake gnome gettext libtool localbase \ | |||||
pkgconfig tar:xz | |||||
USE_GNOME= cairo gdkpixbuf2 intltool | |||||
USE_XORG= x11 | USE_XORG= x11 | ||||
GNU_CONFIGURE= yes | |||||
.if ${FLAVOR:Mgtk2} | |||||
USE_GNOME+= gtk20 | |||||
CONFIGURE_ARGS=--with-gtk=2 | CONFIGURE_ARGS= --with-gtk=2 | ||||
.elif ${FLAVOR:Mgtk3} | |||||
USE_GNOME+= gtk30 | |||||
CONFIGURE_ARGS= --with-gtk=3 | |||||
Done Inline ActionsChaining both .ifs with .else/.elif would make parsing faster. mat: Chaining both .ifs with .else/.elif would make parsing faster. | |||||
.endif | |||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= NLS | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
NLS_USES= gettext-tools:build | |||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
NLS_USES_OFF= gettext-tools | |||||
post-extract: | post-extract: | ||||
${MV} ${WRKSRC}/data/pcmanfm.conf \ | @${MV} ${WRKSRC}/data/pcmanfm.conf \ | ||||
${WRKSRC}/data/pcmanfm.conf.sample | ${WRKSRC}/data/pcmanfm.conf.sample | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|pcmanfm.conf|pcmanfm.conf.sample|' \ | ${REINPLACE_CMD} -e 's|pcmanfm.conf|pcmanfm.conf.sample|' \ | ||||
${WRKSRC}/data/Makefile.in | ${WRKSRC}/data/Makefile.in | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Please use the <flavor>_PKGNAMESUFFIX helpers for that, do not reuse FLAVOR in it, and try not to change the default flavor's package name so that people running pkg upgrade will not wonder wtf happened again.