1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/x11-fm/gentoo/Makefile
Alex Kozlov e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00

59 lines
1.5 KiB
Makefile

# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$
PORTNAME= gentoo
PORTVERSION= 0.19.13
PORTREVISION= 1
CATEGORIES= x11-fm
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/ \
http://mirror.4bit.ws/
MAINTAINER= dhn@FreeBSD.org
COMMENT= Gtk+ based, file manager inspired by DirectoryOpus
OPTIONS_DEFINE= FAM DOCS
USE_GNOME= gnomehack gtk20
USES= gettext
GNU_CONFIGURE= yes
CONFIGURE_ENV= MKDIR_P="${MKDIR}"
MAN1= gentoo.1
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFAM}
USE_FAM= yes
.else
CONFIGURE_ARGS+= --disable-fam
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g ; \
s|/bin/mount|/sbin/mount|g ; \
s|/bin/umount|/sbin/umount|g' ${WRKSRC}/gentoorc.in
@${REINPLACE_CMD} -e '/^CFLAGS/s|@GENTOO_CFLAGS@|@CFLAGS@|g' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED||g' \
${WRKSRC}/src/odmultibutton.c
post-install:
${INSTALL_MAN} ${WRKSRC}/docs/gentoo.1x ${MANPREFIX}/man/man1/gentoo.1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in BUGS CONFIG-CHANGES CREDITS NEWS README README.NLS README.gtkrc \
TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
${TAR} -C ${WRKSRC}/docs --exclude "gentoo.1x*" -cf - . | \
${TAR} -C ${DOCSDIR} --unlink -xf -
@${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
@${FIND} ${DOCSDIR} | ${XARGS} ${CHMOD} ${SHAREMODE}
@${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} a+x
.endif
.include <bsd.port.mk>