# $NetBSD: Makefile,v 1.47 2009/08/26 19:58:20 sno Exp $ # DISTNAME= rox-2.4.1 PKGREVISION= 9 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rox/} EXTRACT_SUFX= .tgz MAINTAINER= rxg@NetBSD.org HOMEPAGE= http://rox.sourceforge.net/ COMMENT= RISC OS-like filer for X CONFLICTS= rox-base-[0-9]* WRKSRC= ${WRKDIR}/${DISTNAME} DIST_SUBDIR= rox USE_TOOLS+= pax pkg-config GNU_CONFIGURE= yes INSTALLATION_DIRS= libexec/rox share/Choices share/rox/ROX-Filer \ ${PKGMANDIR}/man1 SUBST_CLASSES+= path SUBST_MESSAGE.path= Fixing hardcoded paths. SUBST_STAGE.path= post-patch SUBST_FILES.path= ROX-Filer/AppRun SUBST_FILES.path+= ROX-Filer/src/choices.c SUBST_FILES.path+= ROX-Filer/src/type.c SUBST_FILES.path+= ROX-Filer/src/xdgmime.c SUBST_SED.path= -e 's,/usr/local,${PREFIX},g' SUBST_CLASSES+= bin SUBST_MESSAGE.bin= Fixing binary path. SUBST_STAGE.bin= post-patch SUBST_FILES.bin= ROX-Filer/AppRun SUBST_SED.bin= -e 's,BIN="$$APP_DIR,BIN="${PREFIX}/libexec/rox,g' BUILD_TARGET= ROX-Filer CONFIGURE_DIRS= ROX-Filer/src CONFIGURE_SCRIPT= ./configure.tmp LIBS.SunOS+= -lm post-patch: ${MV} ${WRKSRC:Q}/ROX-Filer/src/configure ${WRKSRC:Q}/ROX-Filer/src/${CONFIGURE_SCRIPT:Q} post-build: @${ECHO} "#!/bin/sh" >> ${WRKDIR:Q}/rox @${ECHO} ${PREFIX:Q}"/share/rox/ROX-Filer/AppRun \"\$$@\"" >> ${WRKDIR:Q}/rox do-install: ${INSTALL_PROGRAM} ${WRKSRC:Q}/ROX-Filer/ROX-Filer ${PREFIX:Q}/libexec/rox cd ${WRKSRC:Q}/Choices && pax -rw . ${PREFIX:Q}/share/Choices cd ${WRKSRC:Q}/ROX-Filer && pax -rw \ -s ',^\./ROX-Filer$$,,' -s ',^\./ROX-Filer/.*,,' \ -s ',^\./ROX-Filer.dbg$$,,' -s ',^\./ROX-Filer.dbg/.*,,'\ -s ',^\./src$$,,' -s ',^\./src/.*,,' \ . ${PREFIX:Q}/share/rox/ROX-Filer ${INSTALL_MAN} ${WRKSRC:Q}/rox.1 ${PREFIX:Q}/${PKGMANDIR}/man1 ${INSTALL_DATA} ${WRKSRC:Q}/rox.xml ${PREFIX:Q}/share/mime/packages ${INSTALL_SCRIPT} ${WRKDIR:Q}/rox ${PREFIX:Q}/bin BUILDLINK_DEPMETHOD.libXt?= build .include "../../databases/shared-mime-info/buildlink3.mk" .include "../../devel/pango/buildlink3.mk" .include "../../sysutils/gnome-vfs/buildlink3.mk" .include "../../textproc/libxml2/buildlink3.mk" .include "../../x11/gtk2/buildlink3.mk" .include "../../x11/libSM/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../x11/libXt/buildlink3.mk" .include "../../mk/bsd.pkg.mk"