# $OpenBSD: Makefile,v 1.11 2002/12/10 22:38:35 couderc Exp $ COMMENT= "gtk file manager with desktop features" VERSION= 1.3.5 DISTNAME= rox-${VERSION} PKGNAME= rox-filer-${VERSION} CATEGORIES= x11 HOMEPAGE= http://rox.sourceforge.net/ MAINTAINER= Damien Couderc PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rox/} DISTFILES= ${DISTNAME}.tgz LIB_DEPENDS= gtk-x11-2.0.=0,gdk-x11-2.0.=0::x11/gtk+2 \ xml2::textproc/libxml RUN_DEPENDS= ::misc/shared-mime-info FILE_TO_PATCH= ${WRKSRC}/ROX-Filer/src/choices.c NO_REGRESS= Yes post-patch: @sed -e s:/usr/local/share/Choices:${PREFIX}/share/rox/Choices: \ ${FILE_TO_PATCH} > ${FILE_TO_PATCH}.tmp && \ mv ${FILE_TO_PATCH}.tmp ${FILE_TO_PATCH} do-build: @cd ${WRKSRC} && ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" \ ROX-Filer/AppRun --compile do-install: @rm -f ${WRKSRC}/ROX-Filer/src/*.orig ${INSTALL_DATA_DIR} ${PREFIX}/rox ${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-icons ${INSTALL_DATA} ${WRKSRC}/Choices/MIME-icons/* ${PREFIX}/share/rox/Choices/MIME-icons ${INSTALL_DATA_DIR} ${PREFIX}/share/rox/Choices/MIME-types ${INSTALL_SCRIPT} ${WRKSRC}/Choices/MIME-types/* ${PREFIX}/share/rox/Choices/MIME-types @(cd ${WRKSRC}/ROX-Filer/src && make clean) @cp -R ${WRKSRC}/ROX-Filer ${PREFIX}/rox @echo '#!/bin/sh' > ${PREFIX}/bin/rox @echo 'exec /usr/local/rox/ROX-Filer/AppRun "$$@"' >> ${PREFIX}/bin/rox @chmod ugo+rx ${PREFIX}/bin/rox .include