1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/mail/wmmaiload/Makefile
Tijl Coosemans 1ee4da6dd1 Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS.  Normally LDFLAGS
appears too early on the command line causing some ports to link with
their own libraries in LOCALBASE (if installed) instead of WRKSRC.

Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as
possible after anything a port Makefile might set.  Use _USES_POST
instead of .include in libedit.mk and libarchive.mk so things like
'USES=libedit localbase:ldflags' work correctly.

Fix some issues with LIBS in some ports.

Switch ports that don't support LIBS to localbase:ldflags.

PR:		212987
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-30 19:24:30 +00:00

58 lines
1.6 KiB
Makefile

# Created by: pat
# $FreeBSD$
PORTNAME= wmmaiload
PORTVERSION= 2.3.0
CATEGORIES= mail windowmaker
MASTER_SITES= http://tnemeth.free.fr/projets/programmes/
MAINTAINER= ports@FreeBSD.org
COMMENT= Incoming mail monitor dockapp with a similar look to wmcpuload
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake localbase:ldflags pkgconfig ssl tar:bzip2
USE_XORG= xpm
USE_GNOME= gtk20
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
CPPFLAGS+= -I${OPENSSLINC} -D_GNU_SOURCE
LDFLAGS+= -L${OPENSSLLIB}
MAKE_ENV= DEBUG_CFLAGS="" DEBUG_LDFLAGS=""
PLIST_FILES= bin/wmmaiload bin/wmmaiload-config \
man/man1/wmmaiload.1.gz man/man1/wmmaiload-config.1.gz
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's| =| ?=|'
.for i in wmmaiload/Init.make
@${REINPLACE_CMD} -e "s|'-lssl'|'-lssl -lcrypto'| ; \
s|-L/usr/X11R6/lib||" ${WRKSRC}/${i}
.endfor
.for i in wmmaiload/checkthread.c
@${REINPLACE_CMD} -e 's|isnumber(|isnum(|g' ${WRKSRC}/${i}
.endfor
.for i in wmmaiload/main.h
@${REINPLACE_CMD} -e '/time\.h>/d' ${WRKSRC}/${i}
.endfor
.for i in wmmaiload/ssl.c
@${REINPLACE_CMD} -e 's|SSLv2_client_method|SSLv23_client_method|' \
${WRKSRC}/${i}
.endfor
.for i in wmmaiload-config/mainwindow.c
@${REINPLACE_CMD} -e 's|remove;|rm;|g ; \
s|remove,|rm,|g ; \
s|remove =|rm =|g ; \
s|PACKAGE"-config"|PACKAGE|g' ${WRKSRC}/${i}
.endfor
do-install:
.for i in wmmaiload wmmaiload-config
${INSTALL_PROGRAM} ${WRKSRC}/${i}/${i} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${i}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.endfor
.include <bsd.port.mk>