openbsd-ports/x11/rox-filer/Makefile
mbalmer 6fc6e60f0c Update to rox filer 2.6
The main changes are: support for .desktop files that require a terminal
emulator; emblems for extended attributes are now optional; there's a
new "Fit" backdrop scaling mode (overscale); the unmount dialog
now includes an Eject button, and all mount commands can take arguments;
and there's a new display option to control whether filtering affects
directories or just files.

From Rui Reis <rui@rui.cx>
2007-04-13 18:45:17 +00:00

65 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.36 2007/04/13 18:45:17 mbalmer Exp $
COMMENT= "GTK+-2 file manager with desktop features"
DISTNAME= rox-filer-2.6
CATEGORIES= x11
HOMEPAGE= http://rox.sourceforge.net/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xau Xrender c fontconfig freetype z \
glib-2.0 gmodule-2.0 gobject-2.0 m glitz png \
atk-1.0 pango-1.0 pangocairo-1.0 \
pangoft2-1.0 cairo Xdmcp expat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rox/}
EXTRACT_SUFX= .tar.bz2
MODULES= devel/gettext
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= gtk-x11-2.0.>=0.9,gdk_pixbuf-2.0.>=0.9,gdk-x11-2.0.>=0.9::x11/gtk+2 \
xml2::textproc/libxml
RUN_DEPENDS= ::misc/shared-mime-info
USE_X11= Yes
USE_GMAKE= Yes
NO_REGRESS= Yes
INSTDATA= AppRun Help Messages Options.xml ROX images style.css \
subclasses .DirIcon
pre-configure:
@perl -pi -e 's,/usr/local/share/Choices,${PREFIX}/share/rox/Choices,g' \
${WRKSRC}/ROX-Filer/src/choices.c
do-build:
@cd ${WRKSRC} && ${SETENV} MAKE="${MAKE_PROGRAM}" CC="${CC}" CFLAGS="${CFLAGS}" \
CPPFLAGS="-I${X11BASE}/include" with_platform="OpenBSD" \
ROX-Filer/AppRun --compile
do-install:
@rm -f ${WRKSRC}/ROX-Filer/src/*.orig
${INSTALL_DATA_DIR} ${PREFIX}/rox/ROX-Filer
${INSTALL_MAN} ${WRKSRC}/rox.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/rox.1 ${PREFIX}/man/man1/ROX-Filer.1
${INSTALL_DATA_DIR} ${PREFIX}/share/rox/Choices/MIME-types
${INSTALL_SCRIPT} ${WRKSRC}/Choices/MIME-types/* \
${PREFIX}/share/rox/Choices/MIME-types
.for p in ROX-Filer ROX-Filer.dbg
${INSTALL_PROGRAM} ${WRKSRC}/ROX-Filer/$p ${PREFIX}/rox/ROX-Filer
.endfor
.for i in ${INSTDATA}
@cp -R ${WRKSRC}/ROX-Filer/$i ${PREFIX}/rox/ROX-Filer
.endfor
@echo '#!/bin/sh' > ${PREFIX}/bin/rox
@echo 'exec /usr/local/rox/ROX-Filer/AppRun "$$@"' >> ${PREFIX}/bin/rox
@chmod ugo+rx ${PREFIX}/bin/rox
.include <bsd.port.mk>