ports/160107: Update port: games/tinymux

KATO Tsuguru tkato432 at yahoo.com
Wed Aug 24 18:50:24 UTC 2011


>Number:         160107
>Category:       ports
>Synopsis:       Update port: games/tinymux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 24 18:50:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support CFLAGS properly

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/tinymux/Makefile games/tinymux/Makefile
--- /usr/ports/games/tinymux/Makefile	2010-09-28 04:41:56.000000000 +0900
+++ games/tinymux/Makefile	2011-08-24 16:25:18.000000000 +0900
@@ -7,27 +7,41 @@
 
 PORTNAME=	tinymux
 PORTVERSION=	2.6.5.${PATCHLEVEL}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games net
-MASTER_SITES=	ftp://ftp.tinymux.org/TinyMUX/tinymux-2.6/${PATCHLEVEL}/ \
-		http://www.tinymux.org/
+MASTER_SITES=	GOOGLE_CODE \
+		ftp://ftp.tinymux.org/TinyMUX/tinymux-2.6/${PATCHLEVEL}/
 DISTNAME=	mux-${PORTVERSION}.unix
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A Multi-Player FreeForm adventure Program
 
-USE_GMAKE=	yes
+WRKSRC=		${WRKDIR}/mux2.6/src
+
 USE_GETTEXT=	yes
+USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
+MAKE_JOBS_SAFE=	yes
 
-PATCHLEVEL=	32
-WRKSRC=		${WRKDIR}/mux2.6/src
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
+
+CPPFLAGS=	-I${LOCALBASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib
+
+PATCHLEVEL=	32
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 900000
+BROKEN=		does not build
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/^LIBS/s|= @LIBS@|= @LDFLAGS@ @LIBS@|g ; \
+		 /^OPTIM/s|=.*|= @CPPFLAGS@|g' ${WRKSRC}/Makefile.in
+
 do-install:
 # Binaries
 .for file in netmux slave
@@ -35,10 +49,10 @@
 .endfor
 	${INSTALL_PROGRAM} ${WRKSRC}/../game/bin/dbconvert ${PREFIX}/bin
 # Configuration
-	${MKDIR} ${PREFIX}/etc/${PORTNAME}
+	${MKDIR} ${ETCDIR}
 .for file in alias.conf compat.conf mux.config netmux.conf
 	${INSTALL_DATA} ${WRKSRC}/../game/${file} \
-		${PREFIX}/etc/${PORTNAME}/${file}.sample
+		${ETCDIR}/${file}.sample
 .endfor
 # Data
 	${MKDIR} ${DATADIR}/game/netmux
@@ -70,10 +84,4 @@
 .endfor
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 900000
-BROKEN=		does not build
-.endif
-
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list