blob: 0dead1c85e000ad033df9465f560f8c03e594e43 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# 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
PORTREVISION= 1
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} \
--with-libpcre=${LOCALBASE} \
--with-libcurl=${LOCALBASE} \
--with-xpm-includes=${LOCALBASE} \
--with-xpm-libraries=${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>
|