ports/184899: mail/wmmaiload: Fix build on -current
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:28 UTC 2013
>Number: 184899
>Category: ports
>Synopsis: mail/wmmaiload: Fix build on -current
>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: Mon Dec 16 18:10:28 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build on -current
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/mail/wmmaiload/Makefile mail/wmmaiload/Makefile
--- /usr/ports/mail/wmmaiload/Makefile 2013-11-06 21:48:11.000000000 +0900
+++ mail/wmmaiload/Makefile 2013-12-17 00:00:00.000000000 +0900
@@ -10,37 +10,47 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Incoming mail monitor dockapp with a similar look to wmcpuload
+OPTIONS_DEFINE= GTK2
+
USES= gmake pkgconfig
USE_XORG= xpm
USE_OPENSSL= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
-MAKE_ARGS= CC="${CC}" \
- CFLAGS="${CFLAGS} -D_GNU_SOURCE ${PTHREAD_CFLAGS}" \
- CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib" \
- LIB_SSL="-lssl -lcrypto" \
- LIB_THREADS="${PTHREAD_LIBS}" \
- DEBUG_CFLAGS="-I${OPENSSLINC}" \
+MAKE_ENV= DEBUG_CFLAGS="-I${OPENSSLINC}" \
DEBUG_LDFLAGS="-L${OPENSSLLIB}"
-MAN1= ${PORTNAME}.1 ${PORTNAME}-config.1
-PLIST_FILES= bin/wmmaiload bin/wmmaiload-config
+CFLAGS+= -D_GNU_SOURCE
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PLIST_FILES= bin/wmmaiload bin/wmmaiload-config \
+ man/man1/wmmaiload.1.gz man/man1/wmmaiload-config.1.gz
-.if defined(WITH_GTK2)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gtk20
-MAKE_ARGS+= GTK_CFLAGS="pkg-config --cflags gtk+-2.0" \
+MAKE_ENV+= GTK_CFLAGS="pkg-config --cflags gtk+-2.0" \
GTK_LIBS="pkg-config --libs gtk+-2.0"
.else
USE_GNOME+= gtk12
-MAKE_ARGS+= GTK_CFLAGS="pkg-config --cflags gtk+" \
+MAKE_ENV+= GTK_CFLAGS="pkg-config --cflags gtk+" \
GTK_LIBS="pkg-config --libs gtk+"
.endif
-NO_STAGE= yes
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
+BROKEN= Does not compile on ia64, powerpc, or sparc64
+.endif
+
post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's| =| ?=|'
.for i in wmmaiload/Init.make
- @${REINPLACE_CMD} -e 's|-L/usr/X11R6/lib||g' ${WRKSRC}/${i}
+ @${REINPLACE_CMD} -e 's|-L/usr/X11R6/lib||g ; \
+ s|-lpthread|-pthread|g' ${WRKSRC}/${i}
.endfor
.for i in wmmaiload/checkthread.c
@${REINPLACE_CMD} -e 's|isnumber(|isnum(|g' ${WRKSRC}/${i}
@@ -63,14 +73,10 @@
do-install:
.for i in wmmaiload wmmaiload-config
- ${INSTALL_PROGRAM} ${WRKSRC}/${i}/${i} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/doc/${i}.1 ${MANPREFIX}/man/man1
+ (cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} \
+ ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${i}.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
.endfor
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
-
.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list