dnl dnl Check for struct linger dnl AC_DEFUN([AC_STRUCT_LINGER], [ av_struct_linger=no AC_MSG_CHECKING(struct linger is available) AC_TRY_RUN([ #include #include struct linger li; int main () { li.l_onoff = 1; li.l_linger = 120; return 0; } ],[ AC_DEFINE(HAVE_STRUCT_LINGER) av_struct_linger=yes ],[ av_struct_linger=no ],[ av_struct_linger=no ]) AC_MSG_RESULT($av_struct_linger) ]) it repository'/>
aboutsummaryrefslogblamecommitdiffstats
blob: fdf8032263118c63eef1ca1d1ce15460135aca9f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                         
                 






                                             
                                                    
 
                   


















                                                    
                                                          


                                            
                                        

           
                                                                











                                                               
                                            










                                                                                       
                      
# New ports collection makefile for:    ipager
# Date created:             22 Mar 2006
# Whom:                 Vlad V. Teterya <vlad@vlad.uz.ua>
#
# $FreeBSD$
#

PORTNAME=   ipager
PORTVERSION=    1.1.0
PORTREVISION=   3
CATEGORIES= x11
MASTER_SITES=   http://useperl.ru/ipager/src/
DISTNAME=   ipager-${PORTVERSION}

MAINTAINER= vlad@vlad.uz.ua
COMMENT=    X11 pager program

LIB_DEPENDS+=   Imlib2.4:${PORTSDIR}/graphics/imlib2

USE_SCONS=  yes

PLIST_FILES=    bin/ipager \
        %%DATADIR%%/themes/atlantis.conf \
        %%DATADIR%%/themes/dark_red.conf \
        %%DATADIR%%/themes/green.conf \
        %%DATADIR%%/themes/industrial.conf \
        %%DATADIR%%/themes/light_gray.conf \
        %%DATADIR%%/themes/light_orange.conf
PLIST_DIRS= %%DATADIR%%/themes %%DATADIR%%
PORTDOCS=   ChangeLog LICENSE README ToDo

THEMES=     atlantis.conf \
        dark_red.conf \
        green.conf \
        industrial.conf \
        light_gray.conf \
        light_orange.conf

post-patch:
        @${REINPLACE_CMD} -e '35,36d;89d;92,94d' \
            ${WRKSRC}/SConstruct

do-build:
       @cd ${WRKSRC} && ${SCONS_BIN}

do-install:
       @cd ${WRKSRC} && ${SCONS_BIN} ${SCONS_INSTALL_TARGET}

post-install:
.if !defined (NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
    ${MKDIR} ${DATADIR}/themes
.for t in ${THEMES}
    ${INSTALL_DATA} ${WRKSRC}/themes/${t} ${DATADIR}/themes
.endfor
    ${STRIP_CMD} ${LOCALBASE}/bin/ipager

    @${ECHO_MSG} ""
    @${ECHO_MSG} ""
    @${ECHO_MSG} "     Some additional themes (config files) you may find"
    @${ECHO_MSG} "     in the ${DATADIR}/themes directory."
    @${ECHO_MSG} "     Just copy any of them instead of your ~./ipager/ipager.conf"
    @${ECHO_MSG} "     config file or you can define other config file via '-c'"
    @${ECHO_MSG} "     command line option"
    @${ECHO_MSG} ""
    @${ECHO_MSG} ""

.include <bsd.port.mk>