Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 16:45:01 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341051 - in head/databases/wmjsql: . files
Message-ID:  <201401251645.s0PGj1eO097300@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sat Jan 25 16:45:01 2014
New Revision: 341051
URL: http://svnweb.freebsd.org/changeset/ports/341051
QAT: https://qat.redports.org/buildarchive/r341051/

Log:
  - Fix build on -current
  - Add LICENSE
  - Support PLIST_FILES
  - Stage support
  
  PR:		184833
  Submitted by:	ports fury

Deleted:
  head/databases/wmjsql/files/
  head/databases/wmjsql/pkg-plist
Modified:
  head/databases/wmjsql/Makefile

Modified: head/databases/wmjsql/Makefile
==============================================================================
--- head/databases/wmjsql/Makefile	Sat Jan 25 16:39:52 2014	(r341050)
+++ head/databases/wmjsql/Makefile	Sat Jan 25 16:45:01 2014	(r341051)
@@ -11,32 +11,41 @@ MASTER_SITES=	http://www.dockapps.org/fi
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	MySQL server status displaying dockapp
 
-USE_MYSQL=	yes
+LICENSE=	GPLv2 # (or later)
+
+WRKSRC=		${WRKDIR}/${PORTNAME}/src
+
 USES=		gmake
+USE_MYSQL=	yes
 USE_XORG=	xpm
-
 ALL_TARGET=	clean all
 MAKE_JOBS_UNSAFE=	yes
 
-WRKSRC=		${WRKDIR}/${PORTNAME}/src
+CPPFLAGS+=	-I${LOCALBASE}/include/X11 -I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib/mysql -L${LOCALBASE}/lib
+
+PORTDOCS=	README
+PLIST_FILES=	bin/${PORTNAME}
 
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's,^INCDIR.*$$,INCDIR = -I${PREFIX}/include/X11 \
-		-I${PREFIX}/include -I${LOCALBASE}/include,' \
-		-e 's,^LIBDIR.*$$,LIBDIR = -L${PREFIX}/lib \
-		-L${LOCALBASE}/lib/mysql,' -e '/^CC/d; /^CFLAGS/d' \
-		-e 's,-D$$(shell echo `uname -s`),,' ${WRKSRC}/Makefile \
-		${WRKSRC}/jDockApp/Makefile ${WRKSRC}/xutils/Makefile
-	@${REINPLACE_CMD} -E 's,\.wmjsql([^r]),\.wmjsqlrc\1,' \
-		${WRKSRC}/wmjsql.jet ${WRKSRC}/../README
+.for i in Makefile jDockApp/Makefile xutils/Makefile
+	@${REINPLACE_CMD} -e \
+		'/^INCDIR/s|=.*|= $${CPPFLAGS}| ; \
+		 /^LIBDIR/s|=.*|= $${LDFLAGS}| ; \
+		 /^CC/d ; \
+		 /^CFLAGS/d ; \
+		 s| make | $$(MAKE) | ; \
+		 s|-D$$(shell echo `uname -s`)||' ${WRKSRC}/${i}
+.endfor
+.for i in wmjsql.jet ../README
+	@${REINPLACE_CMD} -E 's|\.wmjsql([^r])|\.wmjsqlrc\1|' \
+		${WRKSRC}/${i}
+.endfor
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
-.endif
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/.. && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401251645.s0PGj1eO097300>