aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/tinyxml/Makefile
blob: a2b6c265e08a06bc248dc5af7b85e2a70d544d0d (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
# New ports collection makefile for:    tinyxml
# Date created:    28 July 2004
# Whom:        Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=   tinyxml
PORTVERSION=    2.5.3
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}_${PORTVERSION:S/./_/g}

MAINTAINER= skv@FreeBSD.org
COMMENT=    Small C++ XML parser

WRKSRC=     ${WRKDIR}/${PORTNAME}
MAKE_ENV=   PREFIX=${PREFIX}

USE_LDCONFIG=   YES
SHLIB_MAJOR=    2
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"

.if defined(NOPROFILE) || defined(NO_PROFILE)
PLIST_SUB+= PROFILE="@comment "
.else
PLIST_SUB+= PROFILE=""
.endif

post-patch:
    ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
    @${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
        ${FILESDIR}/Makefile > ${WRKSRC}/Makefile

post-install:
.ifndef(NOPORTDOCS)
    @${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif

.include <bsd.port.mk>