Lines 13-22
Link Here
|
13 |
|
13 |
|
14 |
LIB_DEPENDS= libfm-gtk.so:${PORTSDIR}/x11/libfm |
14 |
LIB_DEPENDS= libfm-gtk.so:${PORTSDIR}/x11/libfm |
15 |
|
15 |
|
16 |
USES= desktop-file-utils gmake pkgconfig gettext-tools libtool \ |
16 |
USES= autoreconf desktop-file-utils gettext-tools gmake libtool \ |
17 |
autoreconf tar:xz |
17 |
pkgconfig tar:xz |
18 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
19 |
USE_GNOME= glib20 gtk20 intltool intlhack |
19 |
USE_GNOME= glib20 gtk20 |
20 |
USE_XORG= x11 |
20 |
USE_XORG= x11 |
21 |
|
21 |
|
22 |
CONFIGURE_ARGS=--with-gtk=2 |
22 |
CONFIGURE_ARGS=--with-gtk=2 |
Lines 28-40
Link Here
|
28 |
NLS_USES= gettext-runtime |
28 |
NLS_USES= gettext-runtime |
29 |
NLS_CONFIGURE_ENABLE= nls |
29 |
NLS_CONFIGURE_ENABLE= nls |
30 |
|
30 |
|
|
|
31 |
.include <bsd.port.options.mk> |
32 |
|
31 |
post-patch: |
33 |
post-patch: |
32 |
@${REINPLACE_CMD} -e '/pcmanfm.conf/ d' ${WRKSRC}/data/Makefile.am |
34 |
@${REINPLACE_CMD} -e '/pcmanfm.conf/ d' ${WRKSRC}/data/Makefile.am |
33 |
|
35 |
|
34 |
post-configure: |
36 |
post-configure: |
35 |
# Replace locales files in right place |
37 |
# Replace locales files in the right place |
|
|
38 |
.if ${PORT_OPTIONS:MNLS} |
36 |
${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \ |
39 |
${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \ |
37 |
${WRKSRC}/po/Makefile |
40 |
${WRKSRC}/po/Makefile |
|
|
41 |
.else |
42 |
${REINPLACE_CMD} -e '/^USE_NLS =/s|yes|no|' \ |
43 |
${WRKSRC}/Makefile \ |
44 |
${WRKSRC}/data/Makefile \ |
45 |
${WRKSRC}/data/ui/Makefile \ |
46 |
${WRKSRC}/src/Makefile |
47 |
${REINPLACE_CMD} -e '/^SUBDIRS =/s| po||' ${WRKSRC}/Makefile |
48 |
(cd ${WRKSRC}/data && ${CP} pcmanfm.desktop.in pcmanfm.desktop; \ |
49 |
${CP} pcmanfm-desktop-pref.desktop.in pcmanfm-desktop-pref.desktop) |
50 |
.endif |
38 |
|
51 |
|
39 |
post-install: |
52 |
post-install: |
40 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/ |
53 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/ |