35 lines
809 B
Makefile
35 lines
809 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libqrencode
|
|
PORTVERSION= 3.4.2
|
|
PORTREVISION= 0
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://fukuchi.org/works/qrencode/
|
|
DISTNAME= qrencode-${PORTVERSION}
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
COMMENT= A 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
|
|
|
|
MAN1= qrencode.1
|
|
|
|
PLIST_FILES= bin/qrencode \
|
|
include/qrencode.h \
|
|
lib/libqrencode.la \
|
|
lib/libqrencode.so \
|
|
lib/libqrencode.so.3 \
|
|
libdata/pkgconfig/libqrencode.pc
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,libpng12,libpng,' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '9s|$$| ${PTHREAD_LIBS}|' ${WRKSRC}/libqrencode.pc.in
|
|
|
|
.include <bsd.port.mk>
|