blob: ded01297d2ce068107371bec46db0e2f9ce7af17 (
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
|
# Ports collection makefile for: komclean
# Date created: 23 March 2010
# Whom: smyru@heron.pl
#
# $FreeBSD$
#
PORTNAME= komclean
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME:S/kom/KOM/}-${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= smyru@heron.pl
COMMENT= Web based LysKOM client
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/Copyright.txt
USE_GMAKE= yes
USE_XORG= x11 xext xextproto xpm
INSTALLS_ICONS= yes
MAN1= komclean
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DESKTOP_ENTRIES="KOMclean" \
"${COMMENT}" \
"komclean.xpm" \
"komclean" \
"" \
${FALSE}
.include <bsd.port.pre.mk>
pre-everything::
.ifndef(WITH_PORT)
@${ECHO_MSG}
@${ECHO_MSG} "Define WITH_PORT=[port number] to change default port 8080"
@${ECHO_MSG}
.endif
pre-build:
.ifdef(WITH_PORT)
${REINPLACE_CMD} 's,8080,'${WITH_PORT}',' ${WRKSRC}/src/webui/httpserver.cpp
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/komclean ${PREFIX}/bin
@${MKDIR} ${DATADIR}/html/img
@${INSTALL_DATA} ${WRKSRC}/html/img/*.* ${DATADIR}/html/img
@${INSTALL_DATA} ${WRKSRC}/html/*.* ${DATADIR}/html
@${INSTALL_DATA} ${WRKSRC}/icon/icon_normal.xpm ${PREFIX}/share/pixmaps/komclean.xpm
@${INSTALL_MAN} ${WRKSRC}/komclean.1 ${MANPREFIX}/man/man1/komclean
.include <bsd.port.post.mk>
|