ports/52712: New version of autocd port
Kirill Ponomarew
ponomarew at oberon.net
Tue May 27 10:13:49 UTC 2003
Hi,
On Tue, May 27, 2003 at 01:03:37PM +0400, Dmitry Afanasiev wrote:
> >Number: 52712
> >Category: ports
> >Synopsis: New version of autocd port
What do you think about this version?
-Kirill
-------------- next part --------------
diff -urN autocd.orig/Makefile autocd/Makefile
--- autocd.orig/Makefile Tue Apr 1 02:24:53 2003
+++ autocd/Makefile Tue May 27 12:09:18 2003
@@ -14,10 +14,23 @@
COMMENT= Compact disc control utility
USE_REINPLACE= yes
+MAN1= autocd.1 cdctl.1
post-patch:
- @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
+.for file in Makefile
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local|${PREFIX}|g ; \
+ s|CFLAGS=-Wall -O2 -pipe|CFLAGS?=${CFLAGS}|g' \
+ ${WRKSRC}/${file}
+.endfor
-MAN1= autocd.1 cdctl.1
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in README.rus.html
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${STRIP_CMD} ${PREFIX}/bin/${PORTNAME} ${PREFIX}/bin/cdctl
+.endfor
+.endif
.include <bsd.port.mk>
diff -urN autocd.orig/files/patch-Makefile autocd/files/patch-Makefile
--- autocd.orig/files/patch-Makefile Tue Apr 1 02:24:53 2003
+++ autocd/files/patch-Makefile Thu Jan 1 01:00:00 1970
@@ -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 -urN autocd.orig/pkg-plist autocd/pkg-plist
--- autocd.orig/pkg-plist Tue Apr 1 02:24:53 2003
+++ autocd/pkg-plist Tue May 27 11:56:40 2003
@@ -1,5 +1,5 @@
bin/autocd
bin/cdctl
-bin/pause
-bin/eject
etc/rc.d/autocd.sh
+%%PORTDOCS%%share/doc/autocd/README.rus.html
+ at dirrm share/doc/autocd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20030527/bf034dda/attachment.sig>
More information about the freebsd-ports-bugs
mailing list