Up until now the port installed only a static version of libsquish
-- because the upstream's makefile only built that. Add our own little makefile, that properly builds both static and shared variants using bsd.lib.mk PR: 206125 Approved by: Reinier de Blois (maintainer)
This commit is contained in:
parent
edaa2c37a2
commit
2de70bd150
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=406051
2 changed files with 20 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= squish
|
||||
PORTVERSION= 1.10
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://libsquish.googlecode.com/files/
|
||||
|
||||
|
@ -12,11 +12,12 @@ COMMENT= Open source DXT compression library
|
|||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= gmake
|
||||
USES= uidfix
|
||||
MAKE_ENV= INSTALL_DIR=${STAGEDIR}${PREFIX}
|
||||
PLIST_FILES= include/squish.h \
|
||||
lib/libsquish.a
|
||||
CXXFLAGS+= -fPIC -include limits.h
|
||||
lib/libsquish.a lib/libsquish.so.1 lib/libsquish.so
|
||||
MAKEFILE= ${FILESDIR}/BSDmakefile
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
OPTIONS_RADIO= RG1
|
||||
OPTIONS_RADIO_RG1= ALTIVEC SSE
|
||||
|
|
15
graphics/squish/files/BSDmakefile
Normal file
15
graphics/squish/files/BSDmakefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
LIB= squish
|
||||
SHLIB_MAJOR= 1
|
||||
SRCS!= echo *.cpp
|
||||
NO_PROFILE= yes
|
||||
|
||||
CXXFLAGS+= -include limits.h -I${.CURDIR}
|
||||
|
||||
LIBDIR= ${PREFIX}/lib
|
||||
INCSDIR= ${PREFIX}/include
|
||||
INCS= squish.h
|
||||
# The below two are needed until PR 206126 is resolved
|
||||
INCSOWN= ${LIBOWN}
|
||||
INCSGRP= ${LIBGRP}
|
||||
|
||||
.include <bsd.lib.mk>
|
Loading…
Reference in a new issue