# New ports collection makefile for: gentoo # Date created: 12 August 2001 # Whom: Anders Nordby # # $FreeBSD$ # PORTNAME= gentoo PORTVERSION= 0.15.4 CATEGORIES= x11-fm MASTER_SITES= SF MAINTAINER= dhn@FreeBSD.org COMMENT= Gtk+ based, file manager inspired by DirectoryOpus OPTIONS= FAM "File Alteration Monitor Support" off USE_GNOME= gnomehack gtk20 USE_GETTEXT= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ MKDIR_P="${MKDIR}" MAN1= gentoo.1 CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib .include .if defined(WITH_FAM) 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 post-install: ${INSTALL_MAN} ${WRKSRC}/docs/gentoo.1x ${MANPREFIX}/man/man1/gentoo.1 .if !defined(NOPORTDOCS) @${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