aboutsummaryrefslogtreecommitdiff
path: root/x11-fm
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2003-01-02 13:05:07 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2003-01-02 13:05:07 +0000
commita11c7bc0019291cb219d48c7ffb1d9765f857db7 (patch)
treec31c6955d4e22d6211cbc43bb3f32f6c596a4039 /x11-fm
parentfe64dcb0e54c6a6a9f961a63f4721bfc91cbc752 (diff)
downloadports-a11c7bc0019291cb219d48c7ffb1d9765f857db7.tar.gz
ports-a11c7bc0019291cb219d48c7ffb1d9765f857db7.zip
Notes
Diffstat (limited to 'x11-fm')
-rw-r--r--x11-fm/rox-filer/Makefile14
-rw-r--r--x11-fm/rox-filer/pkg-plist4
2 files changed, 14 insertions, 4 deletions
diff --git a/x11-fm/rox-filer/Makefile b/x11-fm/rox-filer/Makefile
index 03054fe2d5e9..292564e33236 100644
--- a/x11-fm/rox-filer/Makefile
+++ b/x11-fm/rox-filer/Makefile
@@ -21,17 +21,27 @@ RUN_DEPENDS= ${LOCALBASE}/share/mime/packages/freedesktop.org.xml:${PORTSDIR}/mi
MAN1= rox.1
+.include <bsd.port.pre.mk>
+
do-build:
# Run the custom build procedure
cd ${WRKSRC} && GTK_CONFIG=${GTK_CONFIG} GLIB_CONFIG=${GLIB_CONFIG} ROX-Filer/AppRun --compile
+.if (${ARCH} == "i386")
+BINARIES= FreeBSD-ix86
+.else
+BINARIES= FreeBSD-${ARCH}
+.endif
+
+PLIST_SUB= BINARIES="${BINARIES}"
+
do-install:
${MKDIR} ${PREFIX}/apps/ROX-Filer
- cd ${WRKSRC}/ROX-Filer && ${CP} -r .DirIcon Action.png AppInfo.xml AppRun FreeBSD-ix86 Help Messages Options.xml images style.css ${PREFIX}/apps/ROX-Filer
+ cd ${WRKSRC}/ROX-Filer && ${CP} -r .DirIcon Action.png AppInfo.xml AppRun ${BINARIES} Help Messages Options.xml images style.css ${PREFIX}/apps/ROX-Filer
cd ${WRKSRC} && ${CP} -r Choices ${PREFIX}/share/
${MKDIR} ${PREFIX}/share/mime/mime-info
${CAT} ${FILESDIR}/rox | ${SED} -e "s|%%PREFIX%%|${PREFIX}|" > ${PREFIX}/bin/rox
${CHMOD} 775 ${PREFIX}/bin/rox
${INSTALL_MAN} ${WRKSRC}/rox.1 ${PREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-fm/rox-filer/pkg-plist b/x11-fm/rox-filer/pkg-plist
index 13dadcbe93e6..afcf9e4f8b55 100644
--- a/x11-fm/rox-filer/pkg-plist
+++ b/x11-fm/rox-filer/pkg-plist
@@ -2,7 +2,7 @@ apps/ROX-Filer/.DirIcon
apps/ROX-Filer/Action.png
apps/ROX-Filer/AppInfo.xml
apps/ROX-Filer/AppRun
-apps/ROX-Filer/FreeBSD-ix86/ROX-Filer
+apps/ROX-Filer/%%BINARIES%%/ROX-Filer
apps/ROX-Filer/Help/COPYING
apps/ROX-Filer/Help/Changes
apps/ROX-Filer/Help/Manual-fr.html
@@ -84,7 +84,7 @@ share/Choices/MIME-types/text
@dirrm apps/ROX-Filer/images
@dirrm apps/ROX-Filer/Messages
@dirrm apps/ROX-Filer/Help
-@dirrm apps/ROX-Filer/FreeBSD-ix86
+@dirrm apps/ROX-Filer/%%BINARIES%%
@dirrm apps/ROX-Filer
@unexec rmdir %D/share/mime/mime-info 2>/dev/null || true
@unexec rmdir %D/share/mime 2>/dev/null || true