aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/nunnimcax/Makefile
blob: 523601c4e1d423bd9c3db0f8d26a295a0e3950b7 (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
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=   NunniMCAX
PORTVERSION=    1.4.1
CATEGORIES= textproc
MASTER_SITES=   SF/${PORTNAME:L}/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    C, non validating XML parser with SAX-like API

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

.include <bsd.port.mk>