Add JASPER and SZLIB options
This commit is contained in:
parent
8f6f87b7f0
commit
05eb45c840
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432764
1 changed files with 12 additions and 4 deletions
|
@ -13,17 +13,25 @@ COMMENT= Lightweight GRIBEX in C with portable Fortran interface
|
|||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libjasper.so:graphics/jasper \
|
||||
libsz.so:science/szip
|
||||
OPTIONS_DEFINE= JASPER SZIP
|
||||
OPTIONS_DEFAULT=JASPER SZIP
|
||||
|
||||
CONFIGURE_ARGS= --with-jasper=${LOCALBASE} \
|
||||
--with-szlib=${LOCALBASE}
|
||||
CPPFLAGS+= -DgFortran
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
USE_LDCONFIG= yes
|
||||
USES= libtool
|
||||
|
||||
JASPER_CONFIGURE_OFF= --without-jasper
|
||||
JASPER_CONFIGURE_ON= --with-jasper=${LOCALBASE}
|
||||
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
|
||||
SZLIB_CONFIGURE_OFF= --without-szlib
|
||||
SZIP_CONFIGURE_ON= --with-szlib=${LOCALBASE}
|
||||
SZIP_LIB_DEPENDS= libsz.so:science/szip
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e 's|-Ino/include||; s|-Lno/lib||' ${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgribex.so.0.0.0
|
||||
|
||||
|
|
Loading…
Reference in a new issue