mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
604485f846
Approved by: portmgr (bapt)
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# Created by: Kris Moore <kmoore@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libfm
|
|
PORTVERSION= 1.1.2.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/libfm%20%28required%20by%20PCManFM%29/
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= The libFM backend library to PCManFM
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= valac:${PORTSDIR}/lang/vala
|
|
LIB_DEPENDS= libmenu-cache.so:${PORTSDIR}/x11/menu-cache \
|
|
libexif.so:${PORTSDIR}/graphics/libexif
|
|
|
|
USES= fam gmake pkgconfig
|
|
USE_GNOME= gnomehack gtk20
|
|
USE_AUTOTOOLS= libtool
|
|
CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
|
|
${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|-Wno-unused-but-set-variable||' \
|
|
${WRKSRC}/src/actions/Makefile.am ${WRKSRC}/src/actions/Makefile.in
|
|
@${REINPLACE_CMD} -e '/libfm.conf/,/pref-apps.conf/ d' ${WRKSRC}/data/Makefile.in
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e 's|src po|src|' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
pre-install:
|
|
@(cd ${WRKDIR}/libfm-${PORTVERSION} && ${CHMOD} 755 install-sh)
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/libfm
|
|
${INSTALL_DATA} ${WRKSRC}/data/libfm.conf \
|
|
${STAGEDIR}${PREFIX}/etc/xdg/libfm/libfm.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/data/pref-apps.conf \
|
|
${STAGEDIR}${PREFIX}/etc/xdg/libfm/pref-apps.conf.sample
|
|
|
|
.include <bsd.port.mk>
|