aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cmockery2/Makefile
blob: 52ac7b49f16e2e8854240002c5fd71fd3e4331d9 (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
# Created by: Harshavardhana
# $FreeBSD$
#

PORTNAME=   cmockery2
PORTVERSION=    1.3.8
CATEGORIES= sysutils
MASTER_SITES=   https://codeload.github.com/lpabon/cmockery2/tar.gz/
DISTNAME=   v1.3.8
EXTRACT_SUFX=

MAINTAINER= harsha@harshavardhana.net
COMMENT=    Cmockery2 revival of Cmockery unit test framework from Google

LICENSE=    APACHE20

WRKSRC=     ${WRKDIR}/cmockery2-${PORTVERSION}

USES=       libtool:build pkgconfig
USE_AUTOTOOLS=  automake autoconf aclocal libtoolize autoheader
AUTOMAKE_ARGS=  --add-missing
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

INSTALL_TARGET= install-strip
# Disable gcov on FreeBSD
# CONFIGURE_ARGS=   --enable-gcov

post-patch:
    @${REINPLACE_CMD} -e '/^docdir =/s|-$$(VERSION)||' \
        -e '/^pkgconfigdir =/s|$$(libdir)|$$(prefix)/libdata|' \
        ${WRKSRC}/Makefile.am

.include <bsd.port.mk>