aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libqrencode/Makefile
blob: 324114e44a4c2f6ca08fe1a3720ef2d66846bbdf (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: ijliao
# $FreeBSD$

PORTNAME=   libqrencode
PORTVERSION=    3.4.3
PORTREVISION=   0
CATEGORIES= graphics
MASTER_SITES=   http://fukuchi.org/works/qrencode/
DISTNAME=   qrencode-${PORTVERSION}

MAINTAINER= vanilla@FreeBSD.org
COMMENT=    C library for encoding data in a QR Code symbol

LIB_DEPENDS=    png15:${PORTSDIR}/graphics/png

USES=       pathfix pkgconfig
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
LDFLAGS+=   -L${LOCALBASE}/lib
CFLAGS+=    -I${LOCALBASE}/include

PLIST_FILES=    bin/qrencode \
        include/qrencode.h \
        lib/libqrencode.la \
        lib/libqrencode.so \
        lib/libqrencode.so.3 \
        libdata/pkgconfig/libqrencode.pc \
        man/man1/qrencode.1.gz

post-patch:
    @${REINPLACE_CMD} -e 's,libpng12,libpng,' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '9s|$$| ${PTHREAD_LIBS}|' ${WRKSRC}/libqrencode.pc.in

.include <bsd.port.mk>