Skip to content

Commit

Permalink
graphics/liblug: Unbreak on HEAD
Browse files Browse the repository at this point in the history
- Add LICENSE=LGPL20
- Pet portclippy
- Adopt port
  • Loading branch information
5u623l20 committed May 16, 2023
1 parent 8a33036 commit b9e97ec
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions graphics/liblug/Makefile
Expand Up @@ -4,22 +4,34 @@ PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= SUNSITE/libs/graphics

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Multi-format graphics manipulation library

LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libtiff.so:graphics/tiff

PLIST_FILES= lib/liblug.a
USES= xorg
USE_LDCONFIG= yes
USE_XORG= x11

MAKEFILE= Makefile.linux

CFLAGS+= -Wno-return-type

WRKSRC= ${WRKDIR}/lug
MAKEFILE= Makefile.linux
USE_LDCONFIG= yes

PLIST_FILES= lib/liblug.a

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
CFLAGS+= -Wno-error=int-conversion
.endif

post-patch:
@${REINPLACE_CMD} -e 's|-DiTIFF|-DiTIFF -DTIFF_VERSION=TIFF_VERSION_CLASSIC|' \
${WRKSRC}/Makefile.linux

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit b9e97ec

Please sign in to comment.