diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-05-22 20:53:17 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-05-22 20:53:17 +0800 |
commit | c4315f6b1eb492bd1a3367d014a31c9bd98661dc (patch) | |
tree | e327771e1dd0c972e3233e2fdbb0ddcc61219f42 /audio | |
parent | afc9ce8acae77dcc2a1a74d21c4ed1e525e8256d (diff) | |
download | freebsd-ports-gnome-c4315f6b1eb492bd1a3367d014a31c9bd98661dc.tar.gz freebsd-ports-gnome-c4315f6b1eb492bd1a3367d014a31c9bd98661dc.tar.zst freebsd-ports-gnome-c4315f6b1eb492bd1a3367d014a31c9bd98661dc.zip |
Stageify.
Approved by: portmgr@
Diffstat (limited to 'audio')
-rw-r--r-- | audio/voipong/Makefile | 15 | ||||
-rw-r--r-- | audio/voipong/files/patch-Makefile.bsd | 43 |
2 files changed, 37 insertions, 21 deletions
diff --git a/audio/voipong/Makefile b/audio/voipong/Makefile index 428790580250..e66970c53927 100644 --- a/audio/voipong/Makefile +++ b/audio/voipong/Makefile @@ -12,22 +12,21 @@ COMMENT= Detect Voice Over IP calls and dump them to separate wave files USE_LDCONFIG= yes PORTDOCS= ALGORITHMS AUTHORS ChangeLog COPYING INSTALL KNOWN_BUGS \ LICENSE NEWS README THANKS TODO -NO_STAGE= yes +MAKEFILE= Makefile.bsd OPTIONS_DEFINE= DOCS .include <bsd.port.options.mk> -post-patch: - ${MV} ${WRKSRC}/Makefile.bsd ${WRKSRC}/Makefile post-install: .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${MKDIR} ${DOCSDIR}/users-manual - ${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${DOCSDIR}/users-manual/ - ${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.css ${DOCSDIR}/users-manual/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR}/users-manual + ${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${STAGEDIR}${DOCSDIR}/users-manual/ + ${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.css ${STAGEDIR}${DOCSDIR}/users-manual/ .for doc in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor .endif + .include <bsd.port.mk> diff --git a/audio/voipong/files/patch-Makefile.bsd b/audio/voipong/files/patch-Makefile.bsd index 3eabf48d91d2..c05293b652e5 100644 --- a/audio/voipong/files/patch-Makefile.bsd +++ b/audio/voipong/files/patch-Makefile.bsd @@ -1,21 +1,38 @@ ---- Makefile.bsd.orig 2009-08-21 22:13:38.000000000 -0300 -+++ Makefile.bsd 2009-08-21 22:15:08.000000000 -0300 -@@ -55,15 +55,15 @@ +--- Makefile.bsd.orig 2005-12-09 23:20:53.000000000 +0800 ++++ Makefile.bsd 2014-05-22 20:40:35.717976146 +0800 +@@ -18,7 +18,7 @@ + # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + # + +-CC=cc ++#CC=cc + CFLAGS= -g -Wall -Iinclude + SHLIBS=-lpcap + +@@ -54,16 +54,16 @@ voipctl: voipctl.o voipongglobals.o + $(CC) -g -o voipctl voipctl.o voipongglobals.o conf.o miscutil.o $(CFLAGS) install: - mkdir -p /usr/local/etc/voipong +- mkdir -p /usr/local/etc/voipong - mkdir -p /usr/local/etc/voipong/modules -+ mkdir -p /usr/local/lib/voipong - cp voipong /usr/local/bin/ - cp voipctl /usr/local/bin/ - cp etc/voipong.conf /usr/local/etc/voipong/ - chmod 750 /usr/local/bin/voipong - chmod 750 /usr/local/bin/voipctl - chmod 600 /usr/local/etc/voipong/voipong.conf +- cp voipong /usr/local/bin/ +- cp voipctl /usr/local/bin/ +- cp etc/voipong.conf /usr/local/etc/voipong/ +- chmod 750 /usr/local/bin/voipong +- chmod 750 /usr/local/bin/voipctl +- chmod 600 /usr/local/etc/voipong/voipong.conf - cp modvocoder_*.so /usr/local/etc/voipong/modules/ - chmod 500 /usr/local/etc/voipong/modules/* -+ cp modvocoder_*.so /usr/local/lib/voipong/ -+ chmod 500 /usr/local/lib/voipong/* ++ mkdir -p $(DESTDIR)$(PREFIX)/etc/voipong ++ mkdir -p $(DESTDIR)$(PREFIX)/lib/voipong ++ cp voipong $(DESTDIR)$(PREFIX)/bin ++ cp voipctl $(DESTDIR)$(PREFIX)/bin ++ cp etc/voipong.conf $(DESTDIR)$(PREFIX)/etc/voipong ++ chmod 750 $(DESTDIR)$(PREFIX)/bin/voipong ++ chmod 750 $(DESTDIR)$(PREFIX)/bin/voipctl ++ chmod 600 $(DESTDIR)$(PREFIX)/etc/voipong/voipong.conf ++ cp modvocoder_*.so $(DESTDIR)$(PREFIX)/lib/voipong/ ++ chmod 500 $(DESTDIR)$(PREFIX)/lib/voipong/* cls: $(CLEARX) |