SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
43
graphics/qr-code-generator/Makefile
Normal file
43
graphics/qr-code-generator/Makefile
Normal file
|
@ -0,0 +1,43 @@
|
|||
COMMENT = QR Code generator library
|
||||
GH_ACCOUNT = nayuki
|
||||
GH_PROJECT = QR-Code-generator
|
||||
GH_TAGNAME = v1.8.0
|
||||
PKGNAME = ${DISTNAME:L}
|
||||
CATEGORIES = graphics
|
||||
|
||||
# upstream has no shared library versions
|
||||
SHARED_LIBS += qrcodegen 0.0
|
||||
SHARED_LIBS += qrcodegencpp 0.0
|
||||
|
||||
HOMEPAGE = https://www.nayuki.io/page/qr-code-generator-library
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB = ${COMPILER_LIBCXX} m
|
||||
|
||||
MAINTAINER = Klemens Nanni <kn@openbsd.org>
|
||||
|
||||
COMPILER = base-clang ports-gcc
|
||||
|
||||
SEPARATE_BUILD = Yes
|
||||
|
||||
SONAME_C = libqrcodegen.so.${LIBqrcodegen_VERSION}
|
||||
SONAME_CPP = libqrcodegencpp.so.${LIBqrcodegen_VERSION}
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -shared -fPIC \
|
||||
-Wl,-soname,${SONAME_C} -o ${WRKBUILD}/${SONAME_C} qrcodegen.c
|
||||
cd ${WRKSRC}/cpp && PATH=${PORTPATH} ${CXX} ${CXXFLAGS} -shared -fPIC \
|
||||
-Wl,-soname,${SONAME_CPP} -o ${WRKBUILD}/${SONAME_CPP} qrcodegen.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/{c/*.h,cpp/*.hpp} ${PREFIX}/include/
|
||||
${INSTALL_DATA} ${WRKBUILD}/*.so* ${PREFIX}/lib/
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -DQRCODEGEN_TEST \
|
||||
qrcodegen{,-test}.c -o ${WRKBUILD}/qrcodegen-test
|
||||
${WRKBUILD}/qrcodegen-test
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/qr-code-generator/distinfo
Normal file
2
graphics/qr-code-generator/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (QR-Code-generator-1.8.0.tar.gz) = LsCk0z1vUhyULur0c9QtX+E5q8+lfSvv/hDFz300rmA=
|
||||
SIZE (QR-Code-generator-1.8.0.tar.gz) = 193288
|
9
graphics/qr-code-generator/pkg/DESCR
Normal file
9
graphics/qr-code-generator/pkg/DESCR
Normal file
|
@ -0,0 +1,9 @@
|
|||
High-quality QR Code generator library in Java, TypeScript/JavaScript,
|
||||
Python, Rust, C++, C.
|
||||
|
||||
This project aims to be the best, clearest QR Code generator library in
|
||||
multiple languages. The primary goals are flexible options and absolute
|
||||
correctness. Secondary goals are compact implementation size and good
|
||||
documentation comments.
|
||||
|
||||
This package only contains dynamically linked libraries for C++ and C.
|
4
graphics/qr-code-generator/pkg/PLIST
Normal file
4
graphics/qr-code-generator/pkg/PLIST
Normal file
|
@ -0,0 +1,4 @@
|
|||
include/qrcodegen.h
|
||||
include/qrcodegen.hpp
|
||||
@lib lib/libqrcodegen.so.${LIBqrcodegen_VERSION}
|
||||
@lib lib/libqrcodegencpp.so.${LIBqrcodegencpp_VERSION}
|
Loading…
Add table
Add a link
Reference in a new issue