mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
b9398223bd
Approved by: portmgr blanket
60 lines
1.6 KiB
Makefile
60 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 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 <bsd.port.mk>
|