f39fd1984a
Attempt to pre-empt joerg and specify c++11 as the base if clang is used as the compiler.
34 lines
815 B
Makefile
34 lines
815 B
Makefile
# $NetBSD: Makefile,v 1.2 2016/07/19 06:04:30 agc Exp $
|
|
|
|
DISTNAME= lepton-1.2.1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=dropbox/}
|
|
GITHUB_TAG= 911d79a560c303a2a62e5412117d0a4ccb41836d
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/dropbox/lepton/
|
|
COMMENT= Lossless compression/decompression for JPEG images
|
|
LICENSE= modified-bsd
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_LANGUAGES+= c c++
|
|
USE_TOOLS+= autoconf autoreconf automake gmake makeinfo
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
CXXFLAGS+= -std=c++11
|
|
.endif
|
|
|
|
AUTO_MKDIRS= yes
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} sh ./autogen.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lepton ${DESTDIR}${PREFIX}/bin
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|