freebsd-ports/graphics/libsixel/Makefile

53 lines
1.2 KiB
Makefile
Raw Normal View History

PORTNAME= libsixel
PORTVERSION= 1.8.6
PORTEPOCH= 1
CATEGORIES= graphics
Restore original (upstream) distfile URL. During initial `make makesum' the distfile got fetched from the nearby Gentoo mirror but I didn't pay enough attention and didn't notice that: $ curl -sI https://mirror.yandex.ru/gentoo-distfiles/distfiles/libsixel-1.8.6.tar.gz | egrep HTTP\|Content-Length: HTTP/1.1 200 OK Content-Length: 4791628 Because both its size (previous distfile was 4778776 bytes) and contents looked legit, I did not verify that it is identical to the file fetched from GitHub directly. Comparing their contents show only some missing files and directories (example programs and sample image files, none of them are built or installed anyway); the source code itself is identical between the two, as well as resulting `include/sixel.h' file which now comes pre-generated: $ diff -rudp libsixel-1.8.6 sixel-1.8.6 Only in libsixel-1.8.6: .coveralls.yml Only in libsixel-1.8.6: .gitignore Only in libsixel-1.8.6: .travis.yml Only in libsixel-1.8.6: LICENSE Only in libsixel-1.8.6: LICENSE.images Only in libsixel-1.8.6: LICENSE.mesa Only in libsixel-1.8.6: LICENSE.pngsuite Only in libsixel-1.8.6: LICENSE.pnmcolormap Only in libsixel-1.8.6: LICENSE.sdump Only in libsixel-1.8.6: LICENSE.sixel Only in libsixel-1.8.6: LICENSE.stb Only in libsixel-1.8.6: README.md Only in libsixel-1.8.6: examples Only in libsixel-1.8.6: images Only in sixel-1.8.6/include: sixel.h Only in sixel-1.8.6/m4: ._ltoptions.m4 Only in sixel-1.8.6/m4: ._ltsugar.m4 Only in sixel-1.8.6/m4: ._lt~obsolete.m4 Only in libsixel-1.8.6: package.json Only in libsixel-1.8.6: perl Only in libsixel-1.8.6: php Only in libsixel-1.8.6/python: LICENSE Only in libsixel-1.8.6/python: README.rst Only in libsixel-1.8.6: ruby Only in libsixel-1.8.6: wic Drop the LICENSE and README.md (which is basically the project's GitHub front page) and install more commonly seen in packages ChangeLog and NEWS files instead; while here, trim some excessive vertical whitespace.
2021-03-21 14:43:56 +01:00
MASTER_SITES= https://github.com/saitoha/libsixel/releases/download/v${PORTVERSION}/
MAINTAINER= sue@iwmt.org
COMMENT= Encoder/decoder library for DEC SIXEL graphics
LICENSE= MIT
USES= cpe libtool pkgconfig
CPE_VENDOR= ${PORTNAME}_project
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig
INSTALL_TARGET= install-strip
Restore original (upstream) distfile URL. During initial `make makesum' the distfile got fetched from the nearby Gentoo mirror but I didn't pay enough attention and didn't notice that: $ curl -sI https://mirror.yandex.ru/gentoo-distfiles/distfiles/libsixel-1.8.6.tar.gz | egrep HTTP\|Content-Length: HTTP/1.1 200 OK Content-Length: 4791628 Because both its size (previous distfile was 4778776 bytes) and contents looked legit, I did not verify that it is identical to the file fetched from GitHub directly. Comparing their contents show only some missing files and directories (example programs and sample image files, none of them are built or installed anyway); the source code itself is identical between the two, as well as resulting `include/sixel.h' file which now comes pre-generated: $ diff -rudp libsixel-1.8.6 sixel-1.8.6 Only in libsixel-1.8.6: .coveralls.yml Only in libsixel-1.8.6: .gitignore Only in libsixel-1.8.6: .travis.yml Only in libsixel-1.8.6: LICENSE Only in libsixel-1.8.6: LICENSE.images Only in libsixel-1.8.6: LICENSE.mesa Only in libsixel-1.8.6: LICENSE.pngsuite Only in libsixel-1.8.6: LICENSE.pnmcolormap Only in libsixel-1.8.6: LICENSE.sdump Only in libsixel-1.8.6: LICENSE.sixel Only in libsixel-1.8.6: LICENSE.stb Only in libsixel-1.8.6: README.md Only in libsixel-1.8.6: examples Only in libsixel-1.8.6: images Only in sixel-1.8.6/include: sixel.h Only in sixel-1.8.6/m4: ._ltoptions.m4 Only in sixel-1.8.6/m4: ._ltsugar.m4 Only in sixel-1.8.6/m4: ._lt~obsolete.m4 Only in libsixel-1.8.6: package.json Only in libsixel-1.8.6: perl Only in libsixel-1.8.6: php Only in libsixel-1.8.6/python: LICENSE Only in libsixel-1.8.6/python: README.rst Only in libsixel-1.8.6: ruby Only in libsixel-1.8.6: wic Drop the LICENSE and README.md (which is basically the project's GitHub front page) and install more commonly seen in packages ChangeLog and NEWS files instead; while here, trim some excessive vertical whitespace.
2021-03-21 14:43:56 +01:00
WRKSRC= ${WRKDIR}/sixel-${PORTVERSION}
PORTDOCS= ChangeLog NEWS
OPTIONS_DEFINE= CURL DOCS GD JPEG PIXBUF PNG PYTHON
OPTIONS_SUB= yes
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_WITH= libcurl
GD_LIB_DEPENDS= libgd.so:graphics/gd
GD_CONFIGURE_WITH= gd
2015-06-22 20:33:20 +02:00
JPEG_USES= jpeg
JPEG_CONFIGURE_WITH= jpeg
JPEG_CPPFLAGS= -I${LOCALBASE}/include
JPEG_LDFLAGS= -L${LOCALBASE}/lib
PIXBUF_CONFIGURE_WITH= gdk-pixbuf2
PIXBUF_USES= gettext gnome
PIXBUF_USE= gnome=glib20,gdkpixbuf2
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png
PYTHON_USES= python
PYTHON_USE= python=py3kplist
PYTHON_CONFIGURE_ENABLE= python
post-install-DOCS-on:
Restore original (upstream) distfile URL. During initial `make makesum' the distfile got fetched from the nearby Gentoo mirror but I didn't pay enough attention and didn't notice that: $ curl -sI https://mirror.yandex.ru/gentoo-distfiles/distfiles/libsixel-1.8.6.tar.gz | egrep HTTP\|Content-Length: HTTP/1.1 200 OK Content-Length: 4791628 Because both its size (previous distfile was 4778776 bytes) and contents looked legit, I did not verify that it is identical to the file fetched from GitHub directly. Comparing their contents show only some missing files and directories (example programs and sample image files, none of them are built or installed anyway); the source code itself is identical between the two, as well as resulting `include/sixel.h' file which now comes pre-generated: $ diff -rudp libsixel-1.8.6 sixel-1.8.6 Only in libsixel-1.8.6: .coveralls.yml Only in libsixel-1.8.6: .gitignore Only in libsixel-1.8.6: .travis.yml Only in libsixel-1.8.6: LICENSE Only in libsixel-1.8.6: LICENSE.images Only in libsixel-1.8.6: LICENSE.mesa Only in libsixel-1.8.6: LICENSE.pngsuite Only in libsixel-1.8.6: LICENSE.pnmcolormap Only in libsixel-1.8.6: LICENSE.sdump Only in libsixel-1.8.6: LICENSE.sixel Only in libsixel-1.8.6: LICENSE.stb Only in libsixel-1.8.6: README.md Only in libsixel-1.8.6: examples Only in libsixel-1.8.6: images Only in sixel-1.8.6/include: sixel.h Only in sixel-1.8.6/m4: ._ltoptions.m4 Only in sixel-1.8.6/m4: ._ltsugar.m4 Only in sixel-1.8.6/m4: ._lt~obsolete.m4 Only in libsixel-1.8.6: package.json Only in libsixel-1.8.6: perl Only in libsixel-1.8.6: php Only in libsixel-1.8.6/python: LICENSE Only in libsixel-1.8.6/python: README.rst Only in libsixel-1.8.6: ruby Only in libsixel-1.8.6: wic Drop the LICENSE and README.md (which is basically the project's GitHub front page) and install more commonly seen in packages ChangeLog and NEWS files instead; while here, trim some excessive vertical whitespace.
2021-03-21 14:43:56 +01:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>