mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# New ports collection makefile for: x11-fm/libfm
|
|
# Date created: 23 Sept 2010
|
|
# Whom: Kris Moore <kmoore@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libfm
|
|
PORTVERSION= 0.1.16
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/libfm%20%28required%20by%20PCManFM%29/
|
|
|
|
MAINTAINER= kmoore@FreeBSD.org
|
|
COMMENT= The libFM backend library to PCManFM
|
|
|
|
LIB_DEPENDS= startup-notification-1:${PORTSDIR}/x11/startup-notification \
|
|
menu-cache.1:${PORTSDIR}/x11/menu-cache
|
|
|
|
USE_GNOME= gnomehack gtk20 pkgconfig
|
|
USE_AUTOTOOLS= libtool
|
|
USE_GMAKE= yes
|
|
USE_FAM= yes
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS+=--prefix=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
|
|
${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|docs/Makefile||g' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|docs/reference/Makefile||g' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|docs/reference/libfm/Makefile||g' \
|
|
${WRKSRC}/configure
|
|
|
|
pre-install:
|
|
cd ${WRKDIR}/libfm-${PORTVERSION} && ${CHMOD} 755 install-sh
|
|
|
|
.include <bsd.port.post.mk>
|