freebsd-ports/x11-fm/pcmanfm/Makefile
Mathieu Arnold 72ea7e696b Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:33:55 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
# $FreeBSD$
PORTNAME= pcmanfm
PORTVERSION= 1.2.4
CATEGORIES= x11-fm
MASTER_SITES= SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/
MAINTAINER= horia@racoviceanu.com
COMMENT= PCMan File Manager
LICENSE= GPLv2
LIB_DEPENDS= libfm-gtk.so:x11/libfm
USES= autoreconf desktop-file-utils gettext gmake libtool pkgconfig \
tar:xz
GNU_CONFIGURE= yes
USE_GNOME= glib20 gtk20 intltool intlhack
USE_XORG= x11
CONFIGURE_ARGS=--with-gtk=2
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= AUTHORS NEWS
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e '/pcmanfm.conf/ d' ${WRKSRC}/data/Makefile.am
post-configure:
# Replace locales files in right place
${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \
${WRKSRC}/po/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/
${INSTALL_DATA} ${WRKSRC}/data/pcmanfm.conf \
${STAGEDIR}${PREFIX}/etc/xdg/pcmanfm/default/pcmanfm.conf.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>