freebsd-ports/misc/wmweather+/Makefile
Doug Barton 7fc440fb8c Upgrade to version 2.11 which mostly consists of changing from
libwww to curl.

For the port:
1. Switch to the SF macro
2. Update COMMENT
3. Switch to using PLIST_FILES
4. Merge the functionality from files/patch-wmweather+.c to the Makefile
5. Make everything related to the conf example conditional on NOPORTEXAMPLES
6. Display the new pkg-message file after installation of the port
7. Take over maintainership with the approval of the current maintainer
who reports ENOTIME. Thank you Willie for your work on this port. :)
2008-08-04 05:32:59 +00:00

67 lines
2 KiB
Makefile

# New ports collection makefile for: wmweather+-2.4
# Date created: 11 April 2003
# Whom: Harald Wille <harald.wille@students.jku.at>
#
# $FreeBSD$
PORTNAME= wmweather+
PORTVERSION= 2.11
CATEGORIES= misc windowmaker geography
MASTER_SITES= SF
MASTER_SITE_SUBDIR= wmweatherplus
MAINTAINER= dougb@FreeBSD.org
COMMENT= Displays current conditions and forecasts with icons and text
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
wraster:${PORTSDIR}/x11-wm/windowmaker \
pcre:${PORTSDIR}/devel/pcre \
tiff:${PORTSDIR}/graphics/tiff \
Hermes:${PORTSDIR}/graphics/Hermes \
png:${PORTSDIR}/graphics/png \
jpeg:${PORTSDIR}/graphics/jpeg \
ungif:${PORTSDIR}/graphics/libungif
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_XORG= xpm
CONFIGURE_ARGS+= --with-libwraster=${LOCALBASE}
MAN1= wmweather+.1
PLIST_FILES= bin/wmweather+
post-patch:
@${CP} ${WRKSRC}/wmweather+.c ${WRKSRC}/wmweather+.c.dist
@${SED} -e "s#^void usage(int i) __THROW.*#void usage(int i);#" \
${WRKSRC}/wmweather+.c.dist > ${WRKSRC}/wmweather+.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmweather+ ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/wmweather+.1 ${PREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR}/HINTS
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR}/example.conf
PLIST_FILES+= ${EXAMPLESDIR_REL}/HINTS
PLIST_FILES+= ${EXAMPLESDIR_REL}/example.conf
PLIST_DIRS+= ${EXAMPLESDIR_REL}
PM= ${WRKDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif
post-install:
.if !defined(NOPORTEXAMPLES)
@${ECHO} "===================================================" > ${PM}
@${ECHO} "A sample configuration file has been copied to" >> ${PM}
@${ECHO} "${EXAMPLESDIR}/example.conf" >> ${PM}
@${ECHO} "" >> ${PM}
@${ECHO} "Please copy it to ~/.wmweather+/conf and adjust it" >> ${PM}
@${ECHO} "to your needs!" >> ${PM}
@${ECHO} "===================================================" >> ${PM}
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>