# New ports collection makefile for: wmweather+-2.4 # Date created: 11 April 2003 # Whom: Harald Wille # # $FreeBSD$ PORTNAME= wmweather+ PORTVERSION= 2.11 PORTREVISION= 2 CATEGORIES= misc windowmaker geography MASTER_SITES= SF/wmweatherplus/wmweather%2B/wmweather%2B-${PORTVERSION} MAINTAINER= dougb@FreeBSD.org COMMENT= Displays current conditions and forecasts with icons and text LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ 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} \ --with-libpcre=${LOCALBASE} \ --with-libcurl=${LOCALBASE} \ --with-xpm-includes=${LOCALBASE} \ --with-xpm-libraries=${LOCALBASE} OPTIONS= WM "Depend on Window Maker port (otherwise only libwraster)" on MAN1= wmweather+.1 PLIST_FILES= bin/wmweather+ .include .if !defined(WITHOUT_WM) LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker .else LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster .endif 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