t* My OpenBSD ports
       
   URI git clone git://git.codevoid.de/mystuff.git
   DIR Log
   DIR Files
   DIR Refs
       ---
       tMakefile (1168B)
       ---
            1 # $OpenBSD: Makefile,v 1.17 2020/02/12 22:04:32 kn Exp $
            2 
            3 COMMENT =        simple X Image Viewer
            4 
            5 GH_PROJECT =        sxiv
            6 GH_ACCOUNT =        muennich
            7 GH_TAGNAME =        v26
            8 
            9 EPOCH =                1
           10 
           11 CATEGORIES =        graphics x11
           12 
           13 MAINTAINER =        Klemens Nanni <kn@openbsd.org>
           14 
           15 # GPLv2+
           16 PERMIT_PACKAGE =                Yes
           17 
           18 WANTLIB +=        Imlib2 X11 Xft c exif fontconfig gif lib/inotify/inotify
           19 
           20 RUN_DEPENDS =        devel/desktop-file-utils \
           21                 x11/gtk+3,-guic
           22 
           23 LIB_DEPENDS =        devel/libinotify \
           24                 graphics/imlib2 \
           25                 graphics/libexif
           26 
           27 MAKE_FLAGS =        CC="${CC}" \
           28                 V=1 \
           29                 PREFIX=${PREFIX} \
           30                 MANPREFIX=${PREFIX}/man \
           31                 CFLAGS="${CFLAGS} -I${X11BASE}/include -I${X11BASE}/include/freetype2 -I${LOCALBASE}/include -I${LOCALBASE}/include/inotify" \
           32                 LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -L${LOCALBASE}/lib/inotify -linotify -Wl,-rpath ${LOCALBASE}/lib/inotify"
           33 
           34 NO_TEST =        Yes
           35 
           36 # Git errors break version.h build; this makes it fall back to a hardcoded value
           37 pre-build:
           38         ln -sf /usr/bin/true ${WRKDIR}/bin/git
           39 
           40 post-install:
           41         ${MAKE_PROGRAM} -C ${WRKSRC}/icon/ DESTDIR='' ${FAKE_TARGET}
           42         ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
           43         ${INSTALL_DATA} ${WRKSRC}/sxiv.desktop ${PREFIX}/share/applications
           44 
           45 .include <bsd.port.mk>