aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-11-02 18:10:08 +0800
committervs <vs@FreeBSD.org>2005-11-02 18:10:08 +0800
commit97b4a9b0b694e96a35c3f210a2bdd5618ddb9381 (patch)
tree3d791886460a37f60c7baf663fe95d8c69d2f959 /audio
parentf63dd8ae93e9222611c5080ff83f8629c72cc234 (diff)
downloadfreebsd-ports-gnome-97b4a9b0b694e96a35c3f210a2bdd5618ddb9381.tar.gz
freebsd-ports-gnome-97b4a9b0b694e96a35c3f210a2bdd5618ddb9381.tar.zst
freebsd-ports-gnome-97b4a9b0b694e96a35c3f210a2bdd5618ddb9381.zip
Hoist ARCH-logic into port's Makefile
Diffstat (limited to 'audio')
-rw-r--r--audio/rio/Makefile8
-rw-r--r--audio/rio/files/patch-ac31
2 files changed, 7 insertions, 32 deletions
diff --git a/audio/rio/Makefile b/audio/rio/Makefile
index b03f86a41b73..82bf23120b85 100644
--- a/audio/rio/Makefile
+++ b/audio/rio/Makefile
@@ -16,7 +16,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for transferring files to and from the Diamond Rio .mp3 player
WRKSRC= ${WRKDIR}/rio107
-MAKEFILE= makefile
BINOWN= root
BINMODE= 4755
@@ -29,6 +28,13 @@ PLIST_FILES= bin/rio
BROKEN= "Does not compile on ia64 or sparc64"
.endif
+.if ${ARCH} == "alpha"
+LDFLAGS+= -lio
+.endif
+
+do-build:
+ cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o rio app.cpp rio.cpp ${LDFLAGS}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rio ${PREFIX}/bin
diff --git a/audio/rio/files/patch-ac b/audio/rio/files/patch-ac
deleted file mode 100644
index 203fbeebf1c1..000000000000
--- a/audio/rio/files/patch-ac
+++ /dev/null
@@ -1,31 +0,0 @@
-*** makefile.orig Mon Mar 15 06:53:16 1999
---- makefile Sun Feb 6 12:28:15 2000
-***************
-*** 6,15 ****
- #
- ###############################################################################
-
- all: rio
-
- rio: app.cpp rio.cpp
-! g++ -O1 -o rio app.cpp rio.cpp
- chmod +s rio
-
- clean:
---- 6,21 ----
- #
- ###############################################################################
-
-+ .if ${MACHINE_ARCH} == "alpha"
-+ LDADD= -lio
-+ .endif
-+
-+ CXXFLAGS?= -O1
-+
- all: rio
-
- rio: app.cpp rio.cpp
-! g++ ${CXXFLAGS} -o rio app.cpp rio.cpp ${LDADD}
- chmod +s rio
-
- clean: