View | Details | Raw Unified | Return to bug 224638 | Differences between
and this patch

Collapse All | Expand All

(-)i/archivers/maxcso/Makefile (+27 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=		maxcso
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=		1.10.0
6
CATEGORIES=		archivers
7
8
MAINTAINER=	greg@unrelenting.technology
9
COMMENT=	Fast ISO to CSO compressor for PSP and PS2 emulators
10
11
LICENSE=	ISCL
12
13
LIB_DEPENDS=	libuv.so:devel/libuv \
14
		liblz4.so:archivers/liblz4 \
15
		libzopfli.so:archivers/zopfli
16
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	unknownbrackets
19
20
USES=		gmake pkgconfig compiler:c++11-lang
21
22
PLIST_FILES=	bin/${PORTNAME}
23
24
do-install:
25
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
26
27
.include <bsd.port.mk>
(-)i/archivers/maxcso/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1541531490
2
SHA256 (unknownbrackets-maxcso-v1.10.0_GH0.tar.gz) = 8fc56ab96536c0b12f890b34a83b4c4a5c1013756f8664037313132b7c2515eb
3
SIZE (unknownbrackets-maxcso-v1.10.0_GH0.tar.gz) = 3170809
(-)i/archivers/maxcso/files/patch-Makefile (+23 lines)
Added Link Here
1
--- Makefile.orig	2018-11-08 20:43:35 UTC
2
+++ Makefile
3
@@ -5,6 +5,9 @@ CFLAGS += -W -Wall -Wextra -O2 -Wno-implicit-function-
4
 CXXFLAGS += -W -Wall -Wextra -std=c++11 -O2 -Izopfli/src -I7zip -DNDEBUG=1 \
5
 	-Wno-unused-parameter -pthread
6
 
7
+CFLAGS += $(shell pkg-config --cflags libuv liblz4)
8
+CXXFLAGS += $(shell pkg-config --cflags libuv liblz4)
9
+
10
 SRC_CXX_SRC = $(wildcard src/*.cpp)
11
 SRC_CXX_OBJ = $(SRC_CXX_SRC:.cpp=.o)
12
 CLI_CXX_SRC = $(wildcard cli/*.cpp)
13
@@ -23,8 +26,8 @@ ZOPFLI_C_OBJ = $(ZOPFLI_C_SRC:.c=.o)
14
 %.o: %.c
15
 	$(CC) -c $(CFLAGS) -o $@ $<
16
 
17
-maxcso: $(SRC_CXX_OBJ) $(CLI_CXX_OBJ) $(ZOPFLI_C_OBJ) 7zip/7zip.a
18
-	$(CXX) -o $@ $(CXXFLAGS) $^ -luv -llz4 -lz
19
+maxcso: $(SRC_CXX_OBJ) $(CLI_CXX_OBJ) 7zip/7zip.a
20
+	$(CXX) -o $@ $(CXXFLAGS) $^ $(shell pkg-config --libs libuv liblz4) -lzopfli -lz
21
 
22
 7zip/7zip.a:
23
 	$(MAKE) -C 7zip 7zip.a
(-)i/archivers/maxcso/pkg-descr (+5 lines)
Added Link Here
1
A fast ISO to CSO compression program for use with PSP (PlayStation Portable)
2
and PS2 (PlayStation 2) emulators, which uses multiple algorithms for best
3
compression ratio.
4
5
WWW: https://github.com/unknownbrackets/maxcso

Return to bug 224638