# Created by: pat # $FreeBSD: head/mail/wmmaiload/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $ 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 pkgconfig tar:bzip2 USE_XORG= xpm USE_GNOME= gtk20 USE_OPENSSL= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} MAKE_ENV= DEBUG_CFLAGS="-I${OPENSSLINC}" \ DEBUG_LDFLAGS="-L${OPENSSLLIB}" CFLAGS+= -D_GNU_SOURCE 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