2012-10-08 12:38:47 +02:00
|
|
|
# Created by: Harald Wille <harald.wille@students.jku.at>
|
2003-04-11 22:37:09 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-08-04 07:32:59 +02:00
|
|
|
PORTNAME= wmweather+
|
2013-03-15 19:05:28 +01:00
|
|
|
PORTVERSION= 2.13
|
2008-08-04 07:32:59 +02:00
|
|
|
CATEGORIES= misc windowmaker geography
|
2010-12-22 20:41:40 +01:00
|
|
|
MASTER_SITES= SF/wmweatherplus/wmweather%2B/
|
|
|
|
DISTNAME= wmweather%2B-${PORTVERSION}
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2013-03-15 19:05:28 +01:00
|
|
|
MAINTAINER= nemysis@gmx.ch
|
2008-08-04 07:32:59 +02:00
|
|
|
COMMENT= Displays current conditions and forecasts with icons and text
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2013-03-15 19:05:28 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-08-04 07:32:59 +02:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
2003-04-12 21:05:56 +02:00
|
|
|
pcre:${PORTSDIR}/devel/pcre \
|
|
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
|
|
|
Hermes:${PORTSDIR}/graphics/Hermes \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2003-04-12 21:05:56 +02:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
2013-03-15 19:05:28 +01:00
|
|
|
gif:${PORTSDIR}/graphics/giflib
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION}
|
2003-04-12 21:05:56 +02:00
|
|
|
|
2003-04-11 22:37:09 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-04-27 13:59:28 +02:00
|
|
|
USES= iconv
|
2008-03-23 17:44:09 +01:00
|
|
|
USE_XORG= xpm
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2009-06-23 03:36:38 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libwraster=${LOCALBASE} \
|
|
|
|
--with-libpcre=${LOCALBASE} \
|
|
|
|
--with-libcurl=${LOCALBASE} \
|
|
|
|
--with-xpm-includes=${LOCALBASE} \
|
|
|
|
--with-xpm-libraries=${LOCALBASE}
|
2006-11-26 00:48:07 +01:00
|
|
|
|
2013-03-15 19:05:28 +01:00
|
|
|
PORTEXAMPLES= HINTS example.conf
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES WM
|
2012-10-23 11:23:15 +02:00
|
|
|
WM_DESC= Depend on Window Maker port (otherwise only libwraster)
|
2009-08-17 22:13:26 +02:00
|
|
|
|
2003-04-11 22:37:09 +02:00
|
|
|
MAN1= wmweather+.1
|
|
|
|
|
2008-08-04 07:32:59 +02:00
|
|
|
PLIST_FILES= bin/wmweather+
|
|
|
|
|
2012-10-23 11:23:15 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-08-17 22:13:26 +02:00
|
|
|
|
2012-10-23 11:23:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MWM}
|
2009-08-17 22:13:26 +02:00
|
|
|
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster
|
|
|
|
.endif
|
|
|
|
|
2008-08-04 07:32:59 +02:00
|
|
|
post-patch:
|
2013-03-15 19:05:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|void usage(int i) __THROW __attribute__ ((__noreturn__));|void usage(int i);|' \
|
|
|
|
${WRKSRC}/wmweather+.c
|
2008-08-04 07:32:59 +02:00
|
|
|
|
2003-04-11 22:37:09 +02:00
|
|
|
do-install:
|
2013-03-15 19:05:28 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2012-10-23 11:23:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2003-04-12 21:05:56 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2013-03-15 19:05:28 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR}
|
2008-08-04 07:32:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2013-03-15 19:05:28 +01:00
|
|
|
@${ECHO_CMD}
|
2008-08-04 07:32:59 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2013-03-15 19:05:28 +01:00
|
|
|
@${ECHO_CMD}
|
2003-04-12 21:05:56 +02:00
|
|
|
|
2012-10-23 11:23:15 +02:00
|
|
|
.include <bsd.port.mk>
|