diff --git a/audio/autocd/Makefile b/audio/autocd/Makefile index b8dee1779048..e83450f135d1 100644 --- a/audio/autocd/Makefile +++ b/audio/autocd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= autocd -PORTVERSION= 3.00.02a +PORTVERSION= 3.01.02a CATEGORIES= audio sysutils MASTER_SITES= ftp://kot.spb.ru/pub/src/projects/autocd/ @@ -14,10 +14,22 @@ MAINTAINER= KOT@MATPOCKuH.Ru COMMENT= Compact disc control utility USE_REINPLACE= yes - -post-patch: - @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile - MAN1= autocd.1 cdctl.1 +post-patch: +.for file in Makefile + @${REINPLACE_CMD} -e \ + 's|/usr/local|${PREFIX}|g ; \ + s|CFLAGS=-Wall -O2 -pipe|CFLAGS?=${CFLAGS}|g' \ + ${WRKSRC}/${file} +.endfor + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in README.rus.html + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + .include diff --git a/audio/autocd/distinfo b/audio/autocd/distinfo index 4a54c8f77aab..34554cd789b2 100644 --- a/audio/autocd/distinfo +++ b/audio/autocd/distinfo @@ -1 +1 @@ -MD5 (autocd-3.00.02a.tar.gz) = ef165796ae5e56123d974277ba879616 +MD5 (autocd-3.01.02a.tar.gz) = afc4a09ece5e0ec68c088b9501672c0e diff --git a/audio/autocd/files/patch-Makefile b/audio/autocd/files/patch-Makefile deleted file mode 100644 index 71d927ca94c7..000000000000 --- a/audio/autocd/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig Tue Mar 11 13:32:37 2003 -+++ Makefile Tue Mar 11 13:33:27 2003 -@@ -1,7 +1,7 @@ - # Makefile for autocd - - # Install prefix --PREFIX=/usr/local -+PREFIX=%%LOCALBASE%% - # Prefix for rc script. This is default for FreeBSD only! - RCPREFIX=$(PREFIX)/etc/rc.d - # Compiler flags diff --git a/audio/autocd/pkg-plist b/audio/autocd/pkg-plist index aa5f11c6c8aa..828563c3b37f 100644 --- a/audio/autocd/pkg-plist +++ b/audio/autocd/pkg-plist @@ -3,3 +3,5 @@ bin/cdctl bin/pause bin/eject etc/rc.d/autocd.sh +%%PORTDOCS%%share/doc/autocd/README.rus.html +@dirrm share/doc/autocd