mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Resurrect, unbreak, stagify, modernize Makefile
- Define LICENSE (GPLv2), remove -O3 from CFLAGS - Rename (regenerate) one ::-containing patch file - Contract MASTER_SITES, update pkg-plist and pkg-descr
This commit is contained in:
parent
f5e463695b
commit
ddf1af2a3b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373998
@ -1054,6 +1054,7 @@
|
||||
SUBDIR += yafray
|
||||
SUBDIR += yagf
|
||||
SUBDIR += yed
|
||||
SUBDIR += yukon
|
||||
SUBDIR += zathura
|
||||
SUBDIR += zathura-djvu
|
||||
SUBDIR += zathura-pdf-mupdf
|
||||
|
60
graphics/yukon/Makefile
Normal file
60
graphics/yukon/Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
# Created by: Bruce M Simpson <bms@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= yukon
|
||||
PORTVERSION= 2010011201
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= LOCAL/bms
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Real-time capture tool for OpenGL applications
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= libseom.so:${PORTSDIR}/graphics/seom
|
||||
|
||||
USES= gmake tar:bzip2
|
||||
USE_XORG= x11 xv
|
||||
USE_GL= gl
|
||||
USE_LDCONFIG= ${PREFIX}/lib/yukon
|
||||
|
||||
# NOTE: These should be bumped if the underlying GL or Xorg ports change.
|
||||
LIBGL_MAJOR= 1
|
||||
LIBX11_MAJOR= 6
|
||||
|
||||
MAKE_ENV+= LIBGL_MAJOR="${LIBGL_MAJOR}" LIBX11_MAJOR="${LIBX11_MAJOR}"
|
||||
PLIST_SUB+= LIBGL_MAJOR="${LIBGL_MAJOR}" LIBX11_MAJOR="${LIBX11_MAJOR}"
|
||||
|
||||
#
|
||||
# To roll snapshot: as bms: make BOOTSTRAP=defined fetch
|
||||
#
|
||||
.if defined(BOOTSTRAP)
|
||||
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
||||
SVN_REV= 158 # svn tip at epoch 2009120801
|
||||
SVNROOT_URI= https://devel.neopsis.com/svn/yukon
|
||||
|
||||
do-fetch:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
svn export -r ${SVN_REV} ${SVNROOT_URI}/trunk ${WRKSRC}
|
||||
cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
|
||||
.if ${USER} == bms
|
||||
${CHMOD} ugo+r ${DISTDIR}/${DISTNAME}.tar.bz2
|
||||
scp -p ${DISTDIR}/${DISTNAME}.tar.bz2 \
|
||||
freefall.freebsd.org:public_distfiles/
|
||||
.endif
|
||||
.endif # defined(BOOTSTRAP)
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,/etc/yukon,${PREFIX}/etc/yukon,' \
|
||||
${WRKSRC}/src/core/conf.c ${WRKSRC}/src/scripts/yukon
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/yukon/system
|
||||
@${PRINTF} 'LDPATH="%s"\n' ${PREFIX}/lib/yukon \
|
||||
>> ${TMPDIR}/yukon-system-conf
|
||||
${INSTALL_DATA} ${TMPDIR}/yukon-system-conf \
|
||||
${STAGEDIR}${PREFIX}/etc/yukon/system/default
|
||||
${INSTALL_DATA} ${WRKSRC}/tools/yukon.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/yukon/conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/yukon/distinfo
Normal file
2
graphics/yukon/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (yukon-2010011201.tar.bz2) = 8e261dfe86c762912b9d1a577909c77a01b0877d4ac86bde0ba1c6b7901a3bdd
|
||||
SIZE (yukon-2010011201.tar.bz2) = 13388
|
51
graphics/yukon/files/patch-Makefile
Normal file
51
graphics/yukon/files/patch-Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
--- Makefile.orig 2007-07-31 17:10:01 UTC
|
||||
+++ Makefile
|
||||
@@ -1,15 +1,14 @@
|
||||
|
||||
DESTDIR =
|
||||
-PREFIX = /usr/local
|
||||
LIBDIR = lib
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -Iinclude -Wall -std=c99 -O3
|
||||
+CC ?= gcc
|
||||
+CFLAGS = -I${PWD}/include -Wall -std=c99 -I$(LOCALBASE)/include -L$(LOCALBASE)/lib
|
||||
|
||||
OBJS = src/core/conf.o src/core/glue.o src/core/log.o
|
||||
LIBS = libX11.so libGL.so
|
||||
|
||||
--include config.make
|
||||
+###-include config.make
|
||||
|
||||
.PHONY: all clean install
|
||||
all: $(LIBS) yukon-core-lib sysconf
|
||||
@@ -23,19 +22,24 @@ $(LIBS):
|
||||
rm -f $@.native
|
||||
|
||||
yukon-core-lib: $(OBJS)
|
||||
- $(CC) -shared -o $@ $(OBJS) -lseom
|
||||
+ $(CC) -shared -o $@ $(OBJS) -lseom -L${LOCALBASE}/lib
|
||||
|
||||
sysconf:
|
||||
echo 'LDPATH="$(PREFIX)/$(LIBDIR)/yukon"' > $@
|
||||
|
||||
-soname = `objdump -x /usr/$(LIBDIR)/$(1) | grep SONAME | awk '{ print $$2 }'`
|
||||
+soname = `objdump -x $(PREFIX)/$(LIBDIR)/$(1) | grep SONAME | awk '{ print $$2 }'`
|
||||
install: $(LIBS) yukon-core-lib
|
||||
install -m 755 -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon
|
||||
install -m 755 src/scripts/yukon $(DESTDIR)$(PREFIX)/bin
|
||||
install -m 755 yukon-core-lib $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon
|
||||
-
|
||||
- $(foreach lib,$(LIBS),ln -sf /usr/$(LIBDIR)/$(lib) $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/$(lib).native;)
|
||||
- $(foreach lib,$(LIBS),install -m 755 $(lib) $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/$(call soname,$(lib));)
|
||||
+ ln -sf $(LOCALBASE)/lib/libX11.so.$(LIBX11_MAJOR) \
|
||||
+ $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/libX11.so.native
|
||||
+ ln -sf $(LOCALBASE)/lib/libGL.so.$(LIBGL_MAJOR) \
|
||||
+ $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/libGL.so.native
|
||||
+ install -m 755 libX11.so \
|
||||
+ $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/libX11.so.$(LIBX11_MAJOR)
|
||||
+ install -m 755 libGL.so \
|
||||
+ $(DESTDIR)$(PREFIX)/$(LIBDIR)/yukon/libGL.so.$(LIBGL_MAJOR)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(LIBS) yukon-core-lib sysconf
|
14
graphics/yukon/files/patch-include_yukon.h
Normal file
14
graphics/yukon/files/patch-include_yukon.h
Normal file
@ -0,0 +1,14 @@
|
||||
--- include/yukon.h.orig 2007-06-07 13:30:34 UTC
|
||||
+++ include/yukon.h
|
||||
@@ -2,8 +2,10 @@
|
||||
#ifndef __YUKON_H__
|
||||
#define __YUKON_H__
|
||||
|
||||
+#include <sys/param.h>
|
||||
+#include <sys/limits.h>
|
||||
+
|
||||
#include <stdarg.h>
|
||||
-#include <linux/limits.h>
|
||||
|
||||
#include <seom/seom.h>
|
||||
|
6
graphics/yukon/pkg-descr
Normal file
6
graphics/yukon/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
Yukon is a set of libraries and applications that are designed to
|
||||
capture realtime videos of OpenGL applications (games). The original
|
||||
design idea is based on Anandtech's FrameGetter, but was extended
|
||||
to suit today's high-performance computers.
|
||||
|
||||
WWW: https://github.com/wereHamster/yukon
|
8
graphics/yukon/pkg-plist
Normal file
8
graphics/yukon/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
bin/yukon
|
||||
@sample etc/yukon/conf.sample
|
||||
etc/yukon/system/default
|
||||
lib/yukon/libGL.so.%%LIBGL_MAJOR%%
|
||||
lib/yukon/libGL.so.native
|
||||
lib/yukon/libX11.so.%%LIBX11_MAJOR%%
|
||||
lib/yukon/libX11.so.native
|
||||
lib/yukon/yukon-core-lib
|
Loading…
Reference in New Issue
Block a user