ports/120237: [NEW PORT] graphics/liblqr-1: An easy to use C/C++ seam carving library

Dmitry Marakasov amdmi3 at amdmi3.ru
Sun Feb 3 13:40:02 UTC 2008


>Number:         120237
>Category:       ports
>Synopsis:       [NEW PORT] graphics/liblqr-1: An easy to use C/C++ seam carving library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 03 13:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RC1 FreeBSD 7.0-RC1 #0: Sat Jan 5 03:26:52 MSK 2008 root at hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
This site is about a seam-carving C/C++ library called Liquid
Rescale.

It is a free, open source implementation of the algorithm described
in the paper [1] by Shai Avidan and Ariel Shamir.

It aims at resizing pictures non uniformly while preserving their
features, i.e. avoiding distortion of the important parts.

The API is intended to be powerful, yet fast and easy to use. It
supports saving and loading of the carving information, real-time
scaling, manual feature selection, customizable progress report and
more.

Included are full documentation (in docbook format) and examples.

[1] http://www.faculty.idc.ac.il/arik/imret.pdf

WWW: http://liblqr.wikidot.com/
>How-To-Repeat:
>Fix:

--- liblqr-1-0.1.0-1.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	liblqr-1
#	liblqr-1/Makefile
#	liblqr-1/pkg-descr
#	liblqr-1/pkg-plist
#	liblqr-1/distinfo
#	liblqr-1/files
#	liblqr-1/files/patch-examples-Makefile
#
echo c - liblqr-1
mkdir -p liblqr-1 > /dev/null 2>&1
echo x - liblqr-1/Makefile
sed 's/^X//' >liblqr-1/Makefile << 'END-of-liblqr-1/Makefile'
X# New ports collection makefile for:	liblqr-1
X# Date created:		30 Jan 2008
X# Whom:			Dmitry Marakasov <amdmi3 at amdmi3.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	liblqr-1
XDISTVERSION=	0.1.0-1
XCATEGORIES=	graphics
XMASTER_SITES=	http://liblqr.wikidot.com/local--files/en:download-page/ \
X		http://www.amdmi3.ru/distfiles/
X
XMAINTAINER=	amdmi3 at amdmi3.ru
XCOMMENT=	An easy to use C/C++ seam carving library
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_GNOME=	glib20 pkgconfig
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION:C/^([0-9.]+)-([0-9]+)$/\1/}
X
XUSE_LDCONFIG=	yes
X
X.if !defined(NOPORTDOCS)
XBUILD_DEPENDS+=	${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \
X		${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
X
XPORTDOCS=	*
X.endif
X.if !defined(NOPORTEXAMPLES)
XPORTEXAMPLES=	*
X
XPKGMESSAGE=	${WRKDIR}/pkg_message
X.endif
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e '/^lqr_pkgconfigdir/ s|$$(libdir)|$${exec_prefix}/libdata|' \
X		${WRKSRC}/Makefile.in
X	@${REINPLACE_CMD} -e 's|/usr.*chunk\.xsl|${LOCALBASE}/share/xsl/docbook/html/chunk.xsl|' \
X		${WRKSRC}/docs/lqr_style.xsl
X
Xpost-build:
X.if !defined(NOPORTDOCS)
X	${RM} ${WRKSRC}/examples/*.orig
X	cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} xml
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X
X	@${ECHO_CMD} "==========================================================================" >> ${PKGMESSAGE}
X	@${ECHO_CMD} "NOTE: In order to compile examples for liblrq, you will" >> ${PKGMESSAGE}
X	@${ECHO_CMD} "also need pngwriter port (${PORTSDIR}/graphics/pngwriter)." >> ${PKGMESSAGE}
X	@${ECHO_CMD} "Examples are located in ${EXAMPLESDIR}" >> ${PKGMESSAGE}
X	@${ECHO_CMD} "==========================================================================" >> ${PKGMESSAGE}
X
X.if !exists(${LOCALBASE}/lib/libpngwriter.a)
X	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
X.endif
X.endif
X
X.include <bsd.port.post.mk>
END-of-liblqr-1/Makefile
echo x - liblqr-1/pkg-descr
sed 's/^X//' >liblqr-1/pkg-descr << 'END-of-liblqr-1/pkg-descr'
XThis site is about a seam-carving C/C++ library called Liquid
XRescale.
X
XIt is a free, open source implementation of the algorithm described
Xin the paper [1] by Shai Avidan and Ariel Shamir.
X
XIt aims at resizing pictures non uniformly while preserving their
Xfeatures, i.e. avoiding distortion of the important parts.
X
XThe API is intended to be powerful, yet fast and easy to use. It
Xsupports saving and loading of the carving information, real-time
Xscaling, manual feature selection, customizable progress report and
Xmore.
X
XIncluded are full documentation (in docbook format) and examples.
X
X[1] http://www.faculty.idc.ac.il/arik/imret.pdf
X
XWWW: http://liblqr.wikidot.com/
END-of-liblqr-1/pkg-descr
echo x - liblqr-1/pkg-plist
sed 's/^X//' >liblqr-1/pkg-plist << 'END-of-liblqr-1/pkg-plist'
Xinclude/lqr-1/lqr.h
Xinclude/lqr-1/lqr/lqr_base.h
Xinclude/lqr-1/lqr/lqr_carver_bias_pub.h
Xinclude/lqr-1/lqr/lqr_carver_list_pub.h
Xinclude/lqr-1/lqr/lqr_carver_pub.h
Xinclude/lqr-1/lqr/lqr_cursor_pub.h
Xinclude/lqr-1/lqr/lqr_gradient_pub.h
Xinclude/lqr-1/lqr/lqr_progress_pub.h
Xinclude/lqr-1/lqr/lqr_vmap_list_pub.h
Xinclude/lqr-1/lqr/lqr_vmap_pub.h
Xlib/liblqr-1.la
Xlib/liblqr-1.so
Xlib/liblqr-1.so.0
Xlibdata/pkgconfig/lqr-1.pc
X at dirrm include/lqr-1/lqr
X at dirrm include/lqr-1
END-of-liblqr-1/pkg-plist
echo x - liblqr-1/distinfo
sed 's/^X//' >liblqr-1/distinfo << 'END-of-liblqr-1/distinfo'
XMD5 (liblqr-1-0.1.0-1.tar.gz) = 6c8be281b11b9782e45fa7f401e05087
XSHA256 (liblqr-1-0.1.0-1.tar.gz) = 55338d7dd7e50eec634535635e53c08151827074d99170eb3beda6ec15dec5e4
XSIZE (liblqr-1-0.1.0-1.tar.gz) = 367185
END-of-liblqr-1/distinfo
echo c - liblqr-1/files
mkdir -p liblqr-1/files > /dev/null 2>&1
echo x - liblqr-1/files/patch-examples-Makefile
sed 's/^X//' >liblqr-1/files/patch-examples-Makefile << 'END-of-liblqr-1/files/patch-examples-Makefile'
X--- examples/Makefile.orig	2007-12-21 18:02:50.000000000 +0300
X+++ examples/Makefile	2008-01-30 05:43:08.000000000 +0300
X@@ -23,6 +23,8 @@
X 
X 
X # collect flags for the compiler for lqr library
X+CXX ?= g++
X+
X LQR_CFLAGS = `pkg-config --cflags lqr-1`
X 
X LQR_LIBS = `pkg-config --libs lqr-1`
X@@ -59,17 +61,17 @@
X 
X # linking
X $(tt1out) : $(tt1obj)
X-	g++ $(LINKING_FLAGS) -o $(tt1out) $(tt1obj)
X+	$(CXX) $(tt1obj) $(LINKING_FLAGS) -o $(tt1out)
X 
X $(tt2out) : $(tt2obj)
X-	g++ $(LINKING_FLAGS) -o $(tt2out) $(tt2obj)
X+	$(CXX) $(tt2obj) $(LINKING_FLAGS) -o $(tt2out)
X 
X # object building
X $(tt1).o : $(tt1).cpp $(tt1).h
X-	g++ -c $(OBJ_BUILD_FLAGS) $(tt1).cpp
X+	$(CXX) -c $(OBJ_BUILD_FLAGS) $(tt1).cpp
X 
X $(tt2).o : $(tt2).cpp
X-	g++ -c $(OBJ_BUILD_FLAGS) $(tt2).cpp
X+	$(CXX) -c $(OBJ_BUILD_FLAGS) $(tt2).cpp
X 
X #cleanup
X clean:
END-of-liblqr-1/files/patch-examples-Makefile
exit
--- liblqr-1-0.1.0-1.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list