diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-11-02 10:10:08 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-11-02 10:10:08 +0000 |
commit | 083b482c97dea0dc906a29fbd3443cb11ee7f89c (patch) | |
tree | b1556386e1d1701fc776deb494a09e160b9c86a3 /audio/rio | |
parent | - Backport WANT_APACHE= common21 from development version of bsd.apache.mk (diff) |
Hoist ARCH-logic into port's Makefile
Diffstat (limited to 'audio/rio')
-rw-r--r-- | audio/rio/Makefile | 8 | ||||
-rw-r--r-- | audio/rio/files/patch-ac | 31 |
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: |