|
Lines 3-8
Link Here
|
| 3 |
|
3 |
|
| 4 |
PORTNAME= pcmanfm |
4 |
PORTNAME= pcmanfm |
| 5 |
PORTVERSION= 1.2.3 |
5 |
PORTVERSION= 1.2.3 |
|
|
6 |
PORTREVISION= 1 |
| 6 |
CATEGORIES= x11-fm |
7 |
CATEGORIES= x11-fm |
| 7 |
MASTER_SITES= SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ |
8 |
MASTER_SITES= SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ |
| 8 |
|
9 |
|
|
Lines 13-40
Link Here
|
| 13 |
|
14 |
|
| 14 |
LIB_DEPENDS= libfm-gtk.so:${PORTSDIR}/x11/libfm |
15 |
LIB_DEPENDS= libfm-gtk.so:${PORTSDIR}/x11/libfm |
| 15 |
|
16 |
|
| 16 |
USES= desktop-file-utils gmake pkgconfig gettext-tools libtool \ |
17 |
USES= autoreconf desktop-file-utils gettext gmake libtool pkgconfig \ |
| 17 |
autoreconf tar:xz |
18 |
tar:xz |
| 18 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
| 19 |
USE_GNOME= glib20 gtk20 intltool intlhack |
20 |
USE_GNOME= glib20 gtk20 intltool intlhack |
| 20 |
USE_XORG= x11 |
21 |
USE_XORG= x11 |
| 21 |
|
22 |
|
| 22 |
CONFIGURE_ARGS=--with-gtk=2 |
23 |
CONFIGURE_ARGS= --with-gtk=2 |
|
|
24 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 25 |
LDFLAGS+= -L${LOCALBASE}/lib |
| 23 |
|
26 |
|
| 24 |
PORTDOCS= AUTHORS NEWS |
27 |
PORTDOCS= AUTHORS NEWS |
| 25 |
|
28 |
|
| 26 |
OPTIONS_DEFINE= DOCS NLS |
29 |
OPTIONS_DEFINE= DOCS NLS |
| 27 |
OPTIONS_SUB= yes |
30 |
OPTIONS_SUB= yes |
| 28 |
NLS_USES= gettext-runtime |
|
|
| 29 |
NLS_CONFIGURE_ENABLE= nls |
31 |
NLS_CONFIGURE_ENABLE= nls |
| 30 |
|
32 |
|
|
|
33 |
.include <bsd.port.options.mk> |
| 34 |
|
| 31 |
post-patch: |
35 |
post-patch: |
| 32 |
@${REINPLACE_CMD} -e '/pcmanfm.conf/ d' ${WRKSRC}/data/Makefile.am |
36 |
@${REINPLACE_CMD} -e '/pcmanfm.conf/ d' ${WRKSRC}/data/Makefile.am |
| 33 |
|
37 |
|
| 34 |
post-configure: |
38 |
post-configure: |
| 35 |
# Replace locales files in right place |
39 |
# Replace locales files in the right place |
|
|
40 |
.if ${PORT_OPTIONS:MNLS} |
| 36 |
${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \ |
41 |
${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \ |
| 37 |
${WRKSRC}/po/Makefile |
42 |
${WRKSRC}/po/Makefile |
|
|
43 |
.else |
| 44 |
${REINPLACE_CMD} -e '/^SUBDIRS =/s| po||' ${WRKSRC}/Makefile |
| 45 |
(cd ${WRKSRC}/data && ${CP} pcmanfm.desktop.in pcmanfm.desktop; \ |
| 46 |
${CP} pcmanfm-desktop-pref.desktop.in pcmanfm-desktop-pref.desktop) |
| 47 |
.endif |
| 38 |
|
48 |
|
| 39 |
post-install: |
49 |
post-install: |
| 40 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/ |
50 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/ |