diff options
author | pawel <pawel@FreeBSD.org> | 2013-12-24 21:41:41 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-12-24 21:41:41 +0800 |
commit | 0d0d0e117746aee2758473d5829d3fbfa3b444dd (patch) | |
tree | 57e735b4f1716735f033fa1f26dd49551e20ca1e /mail | |
parent | b986ec8f3da6cba85b58a76479cd8459e2f056ee (diff) | |
download | freebsd-ports-gnome-0d0d0e117746aee2758473d5829d3fbfa3b444dd.tar.gz freebsd-ports-gnome-0d0d0e117746aee2758473d5829d3fbfa3b444dd.tar.zst freebsd-ports-gnome-0d0d0e117746aee2758473d5829d3fbfa3b444dd.zip |
- Fix build on -current
- Convert to new options framework
- Support staging
PR: ports/184899
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/wmmaiload/Makefile | 50 |
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> |