aboutsummaryrefslogtreecommitdiff
path: root/mail/wmmaiload
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-12-24 13:41:41 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-12-24 13:41:41 +0000
commitbcfc2e3ebf9b58458114c02019ce6604855a964c (patch)
tree57e735b4f1716735f033fa1f26dd49551e20ca1e /mail/wmmaiload
parent2cc79bfd4cba8b9ce61b107c67d8e0c74dae78ec (diff)
downloadports-bcfc2e3ebf9b58458114c02019ce6604855a964c.tar.gz
ports-bcfc2e3ebf9b58458114c02019ce6604855a964c.zip
Notes
Diffstat (limited to 'mail/wmmaiload')
-rw-r--r--mail/wmmaiload/Makefile50
1 files changed, 27 insertions, 23 deletions
diff --git a/mail/wmmaiload/Makefile b/mail/wmmaiload/Makefile
index a44f1ec3c69f..358dcf288dee 100644
--- a/mail/wmmaiload/Makefile
+++ b/mail/wmmaiload/Makefile
@@ -10,37 +10,45 @@ MASTER_SITES= http://tnemeth.free.fr/projets/programmes/
MAINTAINER= ports@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
+
+.include <bsd.port.options.mk>
-.if defined(WITH_GTK2)
+.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
+.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 +71,10 @@ post-patch:
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>
+.include <bsd.port.mk>