freebsd-ports/devel/libsml/Makefile
Kurt Jaeger db58f246df New port: devel/libsml
libSML is a library which implements the Smart Message Language
(SML) protocol specified by VDE's Forum Netztechnik/Netzbetrieb
(FNN). It can be utilized to communicate to FNN specified Smart
Meters or Smart Meter components (EDL/MUC).

WWW: https://github.com/volkszaehler/libsml

PR:		227367
Submitted by:	Gerrit Beine <mail+freebsd@gerritbeine.de>
2018-06-21 12:54:21 +00:00

31 lines
893 B
Makefile

# Created by: Gerrit Beine <mail+freebsd@gerritbeine.de>
# $FreeBSD$
PORTNAME= libsml
PORTVERSION= 0.1.1
CATEGORIES= devel
MAINTAINER= mail+freebsd@gerritbeine.de
COMMENT= Implementation in C of the Smart Message Language (SML) protocol
LICENSE= GPLv3
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
USES= dos2unix gmake
USE_LDCONFIG= yes
USE_GITHUB= yes
DOS2UNIX_FILES= test/unity/unity.c
GH_ACCOUNT= volkszaehler
GH_TAGNAME= 2a8445b
ALL_TARGET= all
CFLAGS+= -I ${PREFIX}/include
post-patch:
${REINPLACE_CMD} -e "s|-luuid|-luuid -L ${PREFIX}/lib|" ${WRKSRC}/examples/Makefile
${REINPLACE_CMD} -e "s|-luuid|-luuid -L ${PREFIX}/lib|" ${WRKSRC}/test/Makefile
${REINPLACE_CMD} -e "s|prefix = /usr/local|prefix = ${STAGEDIR}${PREFIX}|" ${WRKSRC}/examples/Makefile
${REINPLACE_CMD} -e "s|prefix = /usr/local|prefix = ${STAGEDIR}${PREFIX}|" ${WRKSRC}/sml/Makefile
.include <bsd.port.mk>